Skip to content

spending_limit_reached

Spending limit reached. This generation would go over the spending limit set for this API key or app.

HTTP status 402
Type payment_required_error
Code spending_limit_reached
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.

Wait for the limit to reset, or ask the account owner to raise it at manage_url. Nothing was charged.

{
"error": {
"type": "payment_required_error",
"code": "spending_limit_reached",
"message": "This generation would go over the spending limit set for this API key or app.",
"param": null,
"doc_url": "https://docs.halationlab.ai/errors/spending-limit-reached/",
"request_id": "req_01JD3Y5RJ6M3XW6J8K2N4P7Q9T",
"manage_url": "https://app.halationlab.ai/…"
}
}
  • 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.