Skip to main content
POST
Create a video

Authorizations

Authorization
string
header
required

Personal access token, sent as Authorization: Bearer <token>. Each operation lists the permission it needs: read_only or full_access. A full-access token can call every operation. A read-only token can call only the operations that list read_only; anything else returns 403 read_only_credential_route_not_allowed.

Scopes

full_access
PersonalAccessTokenAuth
full_access
WorkspaceApiKeyAuth
full_access
WorkspaceApiKeyBearerAuth

Headers

Idempotency-Key
string

One key per operation, 1 to 128 characters. A retry with the same key and request within 24 hours returns the first response.

Example:

"7f3c9a2e-retry-1"

X-Active-Branch-Id
string

ID of the branch the editor shows. Used when branch_id is omitted, for users who work on protected-main branches.

Path Parameters

app_id
string
required

ID of the app to generate media for.

Body

application/json
model
string
required

required; a video model id from List models (type=video), with values its capabilities allow

Required string length: 1 - 100
Example:

"veo_3_1_fast"

prompt
string
required

required; what the clip shows

Required string length: 1 - 10000
dry_run
boolean
default:false

true returns a credit estimate without generating or charging; omit or false to generate

seconds
integer | null

Clip length in seconds, within the model's durations from List models. Ask for the length the result needs, since a short clip can't be extended afterward. Omitted, the model's default applies.

Example:

8

aspect_ratio
string | null

output proportions, such as 16:9

Maximum string length: 20
resolution
string | null

output pixel scale, such as 720p

Maximum string length: 20
reference_image_urls
string[]

Public HTTPS image URLs, or this app's own files, that guide the output.

Maximum array length: 8

Response

The estimate for a dry run. No job is started.

dry_run
boolean
required

Always true: nothing was generated or charged.

model
string
required

The model that would serve the request.

Example:

"gpt_image_2"

usage
MediaUsage · object
required