Videos
Videos
A full video: script, voiceover, visuals, music and edit, from a topic or your own script. A one-minute video usually takes 10-20 minutes.
Lifecycle
POST /videos/estimate: the price.POST /videos: the order, withcreditsand anIdempotency-Key.GET /videos/{id}: poll about once a minute.- If you set
stops: answer each one withPOST /videos/{id}/decision. GET /videos/{id}/download: a 15-minute download link.
Fields
| Field | Type | Description |
|---|---|---|
topic | string | Required. What the video is about, 10-1000 characters. Tone or style requests are welcome ("calm, curious narration"). Do not paste a full script here; use script. |
duration_min | integer | Length in whole minutes (1-30). Required unless script is given; then the length comes from the script's word count. |
script | string | Your own narration, up to 20,000 characters. It is read word for word; no new script is written. |
language | string | Voice and script language: tr, en, es, de, fr, pt, ar, ru. Defaults to the channel's language, then the language of the topic or script. |
aspect_ratio | string | 16:9 (default) or 9:16 for Shorts and Reels. |
sources | string[] | Where visuals come from: stock, ai, animation, web. Leave it out for the default mix. |
music | boolean | Background music. Changes the price, so estimate with the same value. |
sfx | boolean | Sound effects (free). Only together with music: sfx: true needs music: true. |
subtitles | boolean | Burned-in subtitles (free). |
brand_outro | boolean | A 2-second "Made with Cook Studio" ending. Gives a 10-credit discount. |
reference_url | string | A YouTube video whose style the video should follow (youtube.com or youtu.be). Changes the price. |
source_urls | string | string[] | Up to 3 news or article links the script must be based on (not YouTube). Free. If a page cannot be read, the order is rejected and nothing is charged. |
channel | string | A channel profile slug from your account. The video uses that channel's voice, language, theme and sources. |
engine | string | michelin, lite, heytuber. Default michelin. See Video engines. |
avatar | string | Required for heytuber, not allowed otherwise: an avatar id like av-1a2b3c, created in the Cook Studio app. |
stops (order only) | string[] | Pause for your approval at script, storyboard, voiceover, render. Michelin only. See Approval stops. |
credits (order only) | integer | The credits value from /videos/estimate. If the price moved, you get 409 price_changed and nothing is charged. |
Status
| Status | Meaning |
|---|---|
queued | Accepted, waiting for a production slot. |
running | Being produced. stage tells you the current step. |
awaiting_approval | Paused at one of your stops. The content to review is in pending. |
done | Finished. Call /videos/{id}/download. |
failed | Production failed. Unused credits are refunded automatically; error has a short reason. |
cancelled | You cancelled it at a stop. The unused part is refunded. |
abandoned | A stop waited too long without an answer and the job was closed. |
Example: Shorts from your own script
curl https://app.cookstudio.ai/api/v1/videos/estimate -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{"topic": "Three facts about octopuses", "script": "Octopuses have three hearts…", "aspect_ratio": "9:16", "subtitles": true}'