Am I charged when an AI image generation fails or is canceled?
On Sume's image API a completed image is billed in full and a failed or canceled one is not. How the reserve, capture and refund work, and what a 402 means.

No. Sume's image docs say image generation billing is all-or-nothing: a completed generation is billed in full, and a failed or cancelled one is not billed. A request that ends early because your client disconnected is treated as a failed generation and is not billed either.
That is from the Image API and Core concepts docs, read 2026-09-29. Failed direct requests return 502 Bad Gateway.
What happens to the money when I submit?
Provider-backed generation can reserve the estimated cost from your wallet on submit, capture the actual cost on success, and refund on failure or cancellation before capture. If the balance cannot cover the estimate, the submit fails with 402 insufficient_credits and no work starts.
| Outcome | Billed? |
|---|---|
| Completed | Yes, in full, at the endpoint price |
Failed (502 or failed job) | No |
| Canceled before capture | No |
| Client disconnects early | Counted as failed, not billed |
| Balance too low at submit | 402, no job starts |
Can I cancel a queued image?
Yes: POST /v1/jobs/:id/cancel works before generation starts. After that it returns 409 job_generation_already_started.
curl -X POST https://api.sume.com/v1/jobs/job_123/cancel \
-H "Authorization: Bearer $SUME_API_KEY"What if I retry after a timeout?
Send the same Idempotency-Key for the same payload. Reusing a key for a different payload returns 409 idempotency_conflict. The images route can answer 202 with a job envelope when it outlasts its 30-second wait, so a slow request is not a failed one: poll the job.
Where do I see what I paid?
The response's usage.cost is the USD amount billed to your wallet, and it is already the amount after Sume's margin.
Sources
Related posts
More in Pricing
- AI image generator for commercial use: what the terms allow
Commercial use of AI images is set by each tool's terms and plan, not the model. On Sume, paid plans include it and Sume claims no ownership of outputs.
- AI music generator cost: what one track costs to make
An AI music generator API costs a flat price per generated track on Sume, not per minute. The rate, what changes it, and budgets for takes.
- AI video generator for enterprise: terms, billing, limits
Buying an AI video generator for an enterprise means a signed order form, invoice or PO billing and higher limits. What Sume's Enterprise tier lists.
- AI video generator refund policy: what you can get back
Two refunds: money back on a plan, which Sume's terms rule out except where law requires, and failed jobs, whose hold returns to your balance automatically.
Written by Sume