Skip to main content
GET
/
api
/
v1
/
billing
/
usage
curl "https://api.mor.org/api/v1/billing/usage?limit=10&model=llama-3.3-70b" \
  -H "Authorization: Bearer sk-your-api-key"
{
  "items": [
    {
      "id": "0192a1b2-c3d4-7890-abcd-ef1234567890",
      "created_at": "2026-05-22T14:30:00Z",
      "model_name": "llama-3.3-70b",
      "model_id": "0x415471125cc4d03b89818acb8426981fa28a3eee03a9097176297a9a6ae87c8d",
      "endpoint": "/api/v1/chat/completions",
      "tokens_input": 128,
      "tokens_output": 256,
      "tokens_total": 384,
      "amount_paid": "0.00",
      "amount_staking": "0.0042",
      "amount_total": "0.0042",
      "request_id": "req_abc123",
      "api_key_id": 42
    }
  ],
  "total": 156,
  "limit": 10,
  "offset": 0,
  "has_more": true
}
Get a paginated list of posted usage charges for inference requests. Use this endpoint to answer how much you used at the request level — including model, endpoint, token counts, and credit amounts. Returns newest entries first. Only includes finalized usage charges, not pending holds.

Headers

Authorization
string
required
API key or Cognito JWT: Bearer sk-xxxxxx

Query Parameters

limit
integer
default:"50"
Maximum number of items to return (minimum 1).
offset
integer
default:"0"
Number of items to skip for pagination.
from
string
Filter entries created after this datetime (ISO 8601).
to
string
Filter entries created before this datetime (ISO 8601).
model
string
Filter by model name.

Response

items
array
List of usage entries.
total
integer
Total number of matching entries.
limit
integer
Page size used for this response.
offset
integer
Offset used for this response.
has_more
boolean
Whether additional pages are available.
curl "https://api.mor.org/api/v1/billing/usage?limit=10&model=llama-3.3-70b" \
  -H "Authorization: Bearer sk-your-api-key"
{
  "items": [
    {
      "id": "0192a1b2-c3d4-7890-abcd-ef1234567890",
      "created_at": "2026-05-22T14:30:00Z",
      "model_name": "llama-3.3-70b",
      "model_id": "0x415471125cc4d03b89818acb8426981fa28a3eee03a9097176297a9a6ae87c8d",
      "endpoint": "/api/v1/chat/completions",
      "tokens_input": 128,
      "tokens_output": 256,
      "tokens_total": 384,
      "amount_paid": "0.00",
      "amount_staking": "0.0042",
      "amount_total": "0.0042",
      "request_id": "req_abc123",
      "api_key_id": 42
    }
  ],
  "total": 156,
  "limit": 10,
  "offset": 0,
  "has_more": true
}