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. |
What to do
Section titled “What to do”Add tokens to the account, or choose a cheaper model or settings. Nothing was charged.
Example
Section titled “Example”{ "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" }}Returned by
Section titled “Returned by”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.