# Get credits

`GET https://api.llm.buzz/api/v1/credits`

Your organization's prepaid credit: `total_credits`, the credit it has added, and `total_usage`, what it has spent, in US dollars. Zeros before any credit.

Authentication: a management key, created on the console's Keys page, as `Authorization: Bearer KEY`; the samples read it from `$LLM_BUZZ_MANAGEMENT_KEY`.

## Responses

- 200: The credit, as `{"data": ...}`.
- 401: No `Authorization` header (`missing_authentication`), or the key is unknown, expired, revoked or disabled (`invalid_key`).
- 403: An inference key called a route that takes a management key. Create one on the console's Keys page.

## Example (curl)

```bash
curl https://api.llm.buzz/api/v1/credits \
  -H "Authorization: Bearer $LLM_BUZZ_MANAGEMENT_KEY"
```

## Example response

```json
{
  "data": {
    "total_credits": 25,
    "total_usage": 3.25
  }
}
```
