---
title: "Credit rate card for the organization"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.cloudraker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Credit rate card for the organization

Path: CloudRaker Workspace API › Billing

`GET /billing/rates`

One entry per meter in the organization’s resolved plan, plus every sandbox meter the plan does not price with `creditsPerUnit: null`. Derived from the plan, never from the advertised catalog: an unpriced meter has no price, so a caller reserves nothing rather than invent one. Authorization: any member of the organization.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Code samples

### cURL

```bash
curl --request GET \
  --url https://api.cloudraker.com/billing/rates \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/billing/rates';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/billing/rates"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

The organization’s credit rate card.

#### Example

```json
{
  "creditUsd": 0.001,
  "rates": [
    {
      "event": "sandbox_minutes",
      "unit": "count",
      "creditsPerUnit": 0,
      "match": {
        "model": "gpt-5-mini"
      }
    }
  ]
}
```

- `creditUsd` (`getBillingRates.response.200.creditUsd`; number, required)
  - example `0.001`
- `rates` (`getBillingRates.response.200.rates`; array<object>, required)
  - `event` (`getBillingRates.response.200.rates.event`; string, required)
    - example `"sandbox_minutes"`
  - `unit` (`getBillingRates.response.200.rates.unit`; string, required)
    - one of `"count"`, `"quantity"`
  - `creditsPerUnit` (`getBillingRates.response.200.rates.creditsPerUnit`; number | null, required) — Credits charged per unit. `null` means the resolved plan prices no meter for this event — reserve nothing rather than guess a price.
  - `match` (`getBillingRates.response.200.rates.match`; map<string | number | boolean>, optional) — Dimensions this rate applies to, e.g. `{ "model": "gpt-5" }`. Absent means every row of the event. Read the card IN ORDER and take the first row your dimensions satisfy.
    - example `{"model":"gpt-5-mini"}`

### 503

`not_configured` — billing is not wired in this environment; `metering_unavailable` — the billing service did not answer.

#### Example

```json
{
  "error": "not_configured"
}
```

- `error` (`getBillingRates.response.503.error`; string, required)
  - one of `"not_configured"`, `"metering_unavailable"`


Source: https://docs.cloudraker.com/workspace/api/billing/get-billing-rates/index.md
