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
| Name | Description |
|---|---|
inline | 1 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
| Status | Code | Meaning |
|---|---|---|
| 404 | not_found | No such video or generation on this account. |
| 409 | not_ready | The video or file is not finished yet. Keep polling. |
| 503 | service_unavailable | Production is paused or unreachable. Nothing was charged; retry in a few minutes. |
All errors share one shape; see Errors.