Ecommerce Video
POST https://api.beatapi.io/v1/ecommerce-video/tasks
Create an Ecommerce Video workflow task from product images and an explicit output duration.
Authorization
Authorization string required
Send your BeatAPI API key as a Bearer token. Create one on the Dashboard.
Keep permanent API keys on trusted servers. Content-Type: application/json is required for the request body. Idempotency-Key is optional when the endpoint exposes it and is recommended for safe retries with the exact same body.
Request body
images string[] required
Primary product or scene image first, followed by up to six additional public HTTPS PNG, JPEG, or WebP product or lifestyle images. Upload local files with POST /v1/files and use the returned data.url.
Count: 1 to 7 items
duration integer required
Required target output duration in seconds and the basis for USD calculation. Allowed range is 10-60 seconds.
Range: 10 to 60
prompt string optional
Optional creative direction, audience, product benefit, offer, tone, scenes, or call to action. Maximum 2000 characters.
Length: at most 2000 characters
aspect_ratio enum<string> optional
Target output placement. Use 16:9 for landscape, 9:16 for vertical social, or 1:1 for square placements; set explicitly for stable layout.
Available options: 16:9, 9:16, 1:1
language enum<string> optional
Dialogue and narration language. Use en for English or zh for Chinese; set explicitly when the prompt contains mixed languages.
Available options: en, zh
Response
A successful request returns HTTP 201.
Next step
Save data.id from the accepted response and poll GET /v1/tasks/{task_id} every 5–10 seconds until status is succeeded or failed. Read finished assets from data.output.media.

