What does upstream_billing_error ("the upstream provider refused the request for an account reason") mean?

It is Unlid's problem, not yours: the inference host refused our account, usually because our prepaid balance with that host ran out. You are not charged, we are alerted automatically and top it up, and a retry a few minutes later normally goes through.

What it looks like

HTTP 502
{"error":{"message":"The upstream provider refused the request for an account reason on our side. This is an operator problem, not yours; you were not charged.","type":"upstream_error","code":"upstream_billing_error","upstream_status":402}}

What to do

  • Nothing about your key, balance or request needs to change.
  • Retry after a few minutes, or switch to another model in the meantime. Clients that retry automatically (OpenCode, Kilo Code, SillyTavern…) usually recover on their own.
  • If it keeps happening on one model for more than an hour, send the x-unlid-trace-id of a failed request in the support chat.

Related codes

upstream_auth_error ("the upstream provider rejected our credentials") is the same kind of failure on our credentials with the host, also not charged. Other 502s are covered in the random 502 answer; the status page shows each model's success rate over the last 24 hours.

Related questions

Something not covered? Ask in the support chat at the bottom right, or see the FAQ and the API docs.