Skip to content

spending_not_authorized

Spending not set up. This API key or app has no spending limit that covers this model and project.

HTTP status 403
Type permission_error
Code spending_not_authorized
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.

Ask the account owner to allow spending for this credential at manage_url. Nothing was charged.

{
"error": {
"type": "permission_error",
"code": "spending_not_authorized",
"message": "This API key or app has no spending limit that covers this model and project.",
"param": null,
"doc_url": "https://docs.halationlab.ai/errors/spending-not-authorized/",
"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.