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
}
Billing
List Usage
Get detailed per-request usage charges with token and model breakdown
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
string
required
API key or Cognito JWT:
Bearer sk-xxxxxxQuery Parameters
integer
default:"50"
Maximum number of items to return (minimum 1).
integer
default:"0"
Number of items to skip for pagination.
string
Filter entries created after this datetime (ISO 8601).
string
Filter entries created before this datetime (ISO 8601).
string
Filter by model name.
Response
array
List of usage entries.
Show Usage entry fields
Show Usage entry fields
string
Unique entry ID.
string
When the usage was recorded (ISO 8601).
string | null
Human-readable model name.
string | null
Model identifier.
string | null
API endpoint that was called (for example,
/api/v1/chat/completions).integer | null
Input tokens consumed.
integer | null
Output tokens consumed.
integer | null
Total tokens consumed.
string
Credits charged to the paid bucket.
string
Credits charged to the daily staking bucket.
string
Total credits charged for this request.
string | null
Request ID for correlation with API logs.
integer | null
ID of the API key used for the request.
integer
Total number of matching entries.
integer
Page size used for this response.
integer
Offset used for this response.
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
}

