Skip to main content

When to Use This Flow?

Use this flow for local video files larger than 32 MB. Direct multipart upload is supported for smaller files, but larger local files should use the signed upload flow. Your plan’s file-size limits still apply.

Workflow

1

Request a Signed Upload URL

Response:
2

Upload the File Bytes

Use the returned upload_url to PUT the file directly to storage.
3

Notify the API

4

Poll Upload Status

Wait until upload_status is completed.If canonical_media_id differs from the original media_id, use canonical_media_id for generation.
5

Generate Text, Audio, or Video with media_id

After upload verification completes, call a text, audio, or video generation endpoint with input.type: "media_id".