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

  1. POST /videos/estimate: the price.
  2. POST /videos: the order, with credits and an Idempotency-Key.
  3. GET /videos/{id}: poll about once a minute.
  4. If you set stops: answer each one with POST /videos/{id}/decision.
  5. GET /videos/{id}/download: a 15-minute download link.

Fields

FieldTypeDescription
topicstringRequired. 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_minintegerLength in whole minutes (1-30). Required unless script is given; then the length comes from the script's word count.
scriptstringYour own narration, up to 20,000 characters. It is read word for word; no new script is written.
languagestringVoice 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_ratiostring16:9 (default) or 9:16 for Shorts and Reels.
sourcesstring[]Where visuals come from: stock, ai, animation, web. Leave it out for the default mix.
musicbooleanBackground music. Changes the price, so estimate with the same value.
sfxbooleanSound effects (free). Only together with music: sfx: true needs music: true.
subtitlesbooleanBurned-in subtitles (free).
brand_outrobooleanA 2-second "Made with Cook Studio" ending. Gives a 10-credit discount.
reference_urlstringA YouTube video whose style the video should follow (youtube.com or youtu.be). Changes the price.
source_urlsstring | 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.
channelstringA channel profile slug from your account. The video uses that channel's voice, language, theme and sources.
enginestringmichelin, lite, heytuber. Default michelin. See Video engines.
avatarstringRequired 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)integerThe credits value from /videos/estimate. If the price moved, you get 409 price_changed and nothing is charged.

Status

StatusMeaning
queuedAccepted, waiting for a production slot.
runningBeing produced. stage tells you the current step.
awaiting_approvalPaused at one of your stops. The content to review is in pending.
doneFinished. Call /videos/{id}/download.
failedProduction failed. Unused credits are refunded automatically; error has a short reason.
cancelledYou cancelled it at a stop. The unused part is refunded.
abandonedA 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}'