Get a generation
get_generationReturns one of your saved generations by id: media URL, prompt, type, model, lifecycle_status and credits used. Prefer lifecycle_status (queued/running/succeeded/failed/cancelled/expired - took too long, credits auto-returned); status is the older 3-value word for legacy clients. created_at is UTC/ISO 8601. wait_seconds (max 25s) long-polls instead of an immediate running; cancel_generation stops a running one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait_seconds | No | Optional long-poll: if the generation is still running, wait up to this many seconds (max 25) for it to finish before returning, instead of returning "running" immediately. | |
| generation_id | Yes | The generation id returned by generate_image or generate_video. |