API reference / Generations
Cancel generation
POST/v1/generations/{id}/cancel
Cancel a generation that is still queued. Once a worker has picked up the job and the backend has started rendering, cancel returns 409 not_cancelable.
Path parameters
Parameters
idstringRequired
The id of the generation to cancel.
Behavior
Credit refund
Canceling a queued job releases the credit hold immediately — the call costs nothing. Canceling is idempotent: calling it twice on the same job returns the same payload.