Apply Brand Logo with projectId

Mirror the brand logo recipe in Python. projectId pulls your saved brand package (e.g., logos) into the generated video and thumbnail. Need a project first? Follow Create a Project (Brand Assets)arrow-up-right to save a logo via imageUrl or imageData.

# pip install requests
import os
import requests


def main() -> None:
    token = os.environ.get("AUTOCONTENT_TOKEN", "YOUR_API_TOKEN")
    endpoint = "https://api.autocontentapi.com/content/Create"

    payload = {
        "outputType": "video",
        "projects": ["YOUR_PROJECT_ID"],
        "resources": [
            {
                "type": "text",
                "content": "Explain our new platform launch and highlight customer success data.",
            }
        ],
        "text": "Keep this to 90 seconds with a product intro, key proof points, and a closing CTA.",
        "titlePrompt": "Short, benefit-led launch teaser",
    }

    response = requests.post(
        endpoint,
        headers={
            "Authorization": f"Bearer {token}",
            "Content-Type": "application/json",
            "Accept": "application/json",
        },
        json=payload,
        timeout=30,
    )
    response.raise_for_status()
    print("Request accepted:", response.json())


if __name__ == "__main__":
    main()

Set YOUR_API_TOKEN (or AUTOCONTENT_TOKEN) and YOUR_PROJECT_ID before running.

Last updated