API reference

Download a video

A signed link to the finished MP4, valid for 15 minutes. Ask again for a fresh link when it expires.

GET https://app.cookstudio.ai/api/v1/videos/{id}/download

Query parameters

NameDescription
inline1 to stream in a player instead of downloading

Request

curl https://app.cookstudio.ai/api/v1/videos/6f1c…/download -H "Authorization: Bearer $KEY"

Response

{"object": "download", "id": "6f1c…", "url": "https://…", "expires_at": "2026-12-04T10:45:00Z"}

Errors

StatusCodeMeaning
404not_foundNo such video or generation on this account.
409not_readyThe video or file is not finished yet. Keep polling.
503service_unavailableProduction is paused or unreachable. Nothing was charged; retry in a few minutes.

All errors share one shape; see Errors.