API reference

Get a generation

Status of one generation. When status is done, file_url points to the output. error_type on a failed one is provider, input or server; failed generations are refunded in full.

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

Request

curl https://app.cookstudio.ai/api/v1/generations/a91e… -H "Authorization: Bearer $KEY"

Response

{"id": "a91e…", "object": "generation", "status": "done", "credits": 3, "file_url": "https://app.cookstudio.ai/api/v1/generations/a91e…/file", …}

Errors

StatusCodeMeaning
401unauthorizedMissing, wrong or revoked key.
404not_foundNo such video or generation on this account.

All errors share one shape; see Errors.