Skip to content

max_cost_exceeded

Price above max_cost. The quoted price is higher than the max_cost you sent. Nothing was created or charged.

HTTP status 402
Type payment_required_error
Code max_cost_exceeded
Can retrying help? No. The same request gets the same answer until you change it or fix the cause.
Charged? No. This refusal is free.

Raise max_cost to at least details.quote.max_cost, or change the request.

{
"error": {
"type": "payment_required_error",
"code": "max_cost_exceeded",
"message": "The quoted price is higher than the `max_cost` you sent. Nothing was created or charged.",
"param": null,
"doc_url": "https://docs.halationlab.ai/errors/max-cost-exceeded/",
"request_id": "req_01JD3Y5RJ6M3XW6J8K2N4P7Q9T",
"details": {
"quote": {
"id": "quote_01JD3Y6A1B2C3D4E5F6G7H8J9K",
"object": "quote",
"model": "seedance-2.5",
"max_cost": 380,
"expires_at": "2026-11-28T11:10:00Z"
}
}
}
}
  • POST /v1/generations: Start a generation

See Errors for the error shape and how to handle errors in general, and Billing outcomes for what every outcome costs.