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

# Usage history — GET /v1/payments/usage

> GET /v1/payments/usage — returns your inference usage history. Each entry includes model, token counts, cost in micro-USD, and a timestamp.

The usage endpoint returns your inference usage history as an array of per-request records. Each record shows the model used, the token counts, the cost charged, and the timestamp of the request. Usage is a recent-history view, not a complete billing export.

## Authentication

This endpoint requires a Bearer token:

```
Authorization: Bearer sk-db-...
```

## Response

**usage** `object[]`

Array of usage entries, most recent first.

**entry fields**

**job\_id** `string`

The internal job UUID for this inference request. Matches the `X-Inference-Job-ID` header.

**model** `string`

The model ID used for this request.

**prompt\_tokens** `integer`

Number of input tokens consumed.

**cached\_tokens** `integer`

The part of `prompt_tokens` that a provider served from its prefix cache. Omitted when zero.

**completion\_tokens** `integer`

Number of output tokens generated.

**cost\_micro\_usd** `integer`

The cost charged for this request in micro-USD.

**timestamp** `string`

ISO 8601 timestamp of when the request was completed.

## Example

```bash cURL theme={null}
curl https://api.darkbloom.dev/v1/payments/usage \
  -H "Authorization: Bearer sk-db-..."
```

### Example response

```json theme={null}
{
  "usage": [
    {
      "job_id": "a3f1c2e7-84bb-4d9a-91f3-2b7e6d4a0c18",
      "model": "gemma-4-26b",
      "prompt_tokens": 14,
      "cached_tokens": 0,
      "completion_tokens": 87,
      "cost_micro_usd": 72,
      "timestamp": "2025-04-30T14:22:07Z"
    },
    {
      "job_id": "b7d3e9f1-21cc-4a8b-85e2-9c4d1a7f3b22",
      "model": "gemma-4-26b",
      "prompt_tokens": 32,
      "completion_tokens": 210,
      "cost_micro_usd": 44,
      "timestamp": "2025-04-30T13:05:41Z"
    }
  ]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.