API reference
Download a generation
The output file (MP4, PNG/JPG, MP3 or FLAC) of a finished generation.
GET https://app.cookstudio.ai/api/v1/generations/{id}/file
Query parameters
| Name | Description |
|---|---|
inline | 1 to display instead of download |
Request
curl -o fox.png https://app.cookstudio.ai/api/v1/generations/a91e…/file -H "Authorization: Bearer $KEY"Response
(binary file)
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. |
All errors share one shape; see Errors.