# getCredits

> Part of the MAP Audio Music API docs. Index of every page: https://map.audio/developers/music-api/llms.txt. OpenAPI document: https://map.audio/developers/music-api/openapi.json.

`GET https://api.map.audio/v1/credits`

Get the render-minute balance

What jobs can still spend this month: the tier's allowance, render-minutes used, render-minutes running jobs hold, credits bought, and `remaining`, which the next job draws on. A job reserves its estimate when it is admitted and settles at its outputs' real length. Free. Buy render-minutes or a paid tier at https://map.audio/music.

Auth: `Authorization: Bearer` with an API key or a map.audio access token. MCP tool: `get_credits`.

## Example

```sh
curl -sS "https://api.map.audio/v1/credits" \
  -H "Authorization: Bearer $MAP_API_KEY" \
  -H "Map-Version: 2026-11-01"
```

### 200: A free-tier account part way through the month

```json
{
  "object": "credits",
  "period": "2026-11",
  "unit": "render_minute",
  "tier": {
    "id": "free",
    "name": "Free",
    "currentPeriodEnd": null,
    "cancelAtPeriodEnd": false
  },
  "granted": 30,
  "used": 4.214,
  "reserved": 0.267,
  "remaining": 25.519,
  "grants": [
    {
      "source": "free",
      "amount": 30,
      "remaining": 25.519,
      "expiresAt": "2026-12-01T00:00:00.000Z"
    }
  ]
}
```

### 401: Authentication failed

```json
{
  "error": {
    "type": "authentication",
    "code": "authentication_failed",
    "message": "That API key is not valid or was revoked.",
    "param": null,
    "retryable": false,
    "jobId": null,
    "docUrl": "https://map.audio/developers/music-api/errors#authentication_failed",
    "requestId": "9a3f7c2e5b1d8f40-LHR"
  }
}
```

## Responses

- `200`: Credits.
- `401`: Authentication failed
- `default`: Any other error: `error.code` names it, `error.param` the field at fault, and `error.docUrl` its entry in the error catalogue.

## Errors

- [`invalid_request`](https://map.audio/developers/music-api/errors#invalid_request)
