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

NameDescription
inline1 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

StatusCodeMeaning
404not_foundNo such video or generation on this account.
409not_readyThe video or file is not finished yet. Keep polling.

All errors share one shape; see Errors.