Skip to content

insufficient_balance

Not enough tokens. The account does not have enough tokens for this generation.

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

Add tokens to the account, or choose a cheaper model or settings. Nothing was charged.

{
"error": {
"type": "payment_required_error",
"code": "insufficient_balance",
"message": "The account does not have enough tokens for this generation.",
"param": null,
"doc_url": "https://docs.halationlab.ai/errors/insufficient-balance/",
"request_id": "req_01JD3Y5RJ6M3XW6J8K2N4P7Q9T"
}
}
  • 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.