# credits_exhausted

The run stopped because the account ran out of credits while it was running.

## What happened

A running hosted run keeps topping up what it has reserved. When a top-up cannot be taken, the run is stopped. It is never an answer to a request: you read it on the run, where its status is cancelled and `cost.stopped_for_credits` is true.

## What to do

Add credits, then start the run again.

## Example

```json
{
  "status": "cancelled",
  "error": {
    "code": "credits_exhausted",
    "message": "The run stopped because the account ran out of credits.",
    "detail": {}
  },
  "cost": {
    "stopped_for_credits": true
  }
}
```
