# 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](https://unlid.ai/faq.md#bad_gateway); the [status page](https://unlid.ai/status) shows each model's success rate over the last 24 hours.

## Related questions

- [What does 504 upstream_stalled or upstream_timeout mean?](https://unlid.ai/answers/upstream-stalled-504.md)
- [Why do I get 400 upstream_rejected_request ("blocked by safety filters")?](https://unlid.ai/answers/upstream-rejected-request.md)
- [Why does my Unlid API key return 401 invalid_api_key?](https://unlid.ai/answers/invalid-api-key-401.md)

Something not covered? Ask in the support chat at the bottom right, or see the [FAQ](https://unlid.ai/faq.md) and the [API docs](https://unlid.ai/docs.md).
