---
agent:
  instructions: "Use this search API to find relevant Cook Studio content (product, pricing, FAQ, blog articles, example videos) with keywords or natural-language queries instead of crawling pages. Results are returned in Markdown."
  endpoint: "https://cookstudio.ai/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
title: "Videos"
description: "Order a full video from a topic or your own script, then poll and download it."
---
# 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`](https://cookstudio.ai/docs/reference/estimate-video): the price.
2. [`POST /videos`](https://cookstudio.ai/docs/reference/create-video): the order, with `credits` and an `Idempotency-Key`.
3. [`GET /videos/{id}`](https://cookstudio.ai/docs/reference/get-video): poll about once a minute.
4. If you set `stops`: answer each one with [`POST /videos/{id}/decision`](https://cookstudio.ai/docs/reference/decide-video).
5. [`GET /videos/{id}/download`](https://cookstudio.ai/docs/reference/download-video): 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](https://cookstudio.ai/docs/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](https://cookstudio.ai/docs/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

```bash
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}'
```

Canonical: https://cookstudio.ai/docs/videos
