Cancel a generation
cancel_generationCancels one of your generations that is still running and refunds its credits in full. If it finishes right before the cancel lands, you keep the result and nothing is refunded. Calling this on an already-terminal generation is safe and returns its current state (no double refund). Prefer lifecycle_status over the legacy status word. Does not claw back upstream compute already spent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| generation_id | Yes | The generation id returned by generate_image or generate_video. |