Skip to main content
POST
Generate an AI video ad. Two approaches: "exact" (talking actor reads your exact script — requires actorId from list_avatars) or "realistic" (cinematic UGC from a scene prompt). Returns a projectId immediately — poll get_generation_status for results. Video is expensive; credits are reserved up front.

Authorizations

Authorization
string
header
required

AdStellar API key (ast_live_...)

Body

application/json
approach
enum<string>
required

"exact" = talking-actor read of your script; "realistic" = cinematic UGC video from a scene prompt.

Available options:
exact,
realistic
scriptText
string

The exact words the actor speaks (required for approach=exact).

Maximum string length: 5000
actorId
string<uuid>

Avatar id from list_avatars (required for approach=exact).

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
voiceId
string

Voice id from list_voices. Defaults to the actor's default voice.

scenePrompt
string

Visual direction for approach=realistic (setting, action, camera, mood).

Maximum string length: 4000
model
string

Video model id from list_models({capability:"video"}). Omit for the recommended default.

aspectRatio
enum<string>

Default 9:16.

Available options:
9:16,
16:9,
1:1,
4:5
durationSeconds
integer

Default 15.

Required range: 5 <= x <= 60
variationCount
integer

Default 1.

Required range: 1 <= x <= 4
productId
string<uuid>

Product to feature.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
productImageUrl
string<uri>

Start-frame image URL (realistic only).

tone
string

Delivery tone, e.g. "energetic", "calm".

Maximum string length: 120
workspaceId
string<uuid>

Workspace to generate in (must be one this credential can access). Omit for the primary workspace.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Response

Tool result