Skip to main content
GET
/
api
/
v1
/
billing
/
runs
/
{run_id}
/
usage
Token usage and cost for a single RFT run
curl --request GET \
  --url https://api.primeintellect.ai/api/v1/billing/runs/{run_id}/usage \
  --header 'Authorization: Bearer <token>'
{
  "run_id": "<string>",
  "training": {
    "tokens": 0,
    "input_tokens": 0,
    "output_tokens": 0,
    "cost_usd": 0
  },
  "inference": {
    "tokens": 0,
    "input_tokens": 0,
    "output_tokens": 0,
    "cost_usd": 0
  },
  "total_tokens": 123,
  "total_cost_usd": 123,
  "pricing": {
    "training_per_mtok": 123,
    "inference_input_per_mtok": 123,
    "inference_output_per_mtok": 123
  },
  "run_name": "<string>",
  "base_model": "<string>",
  "status": "<string>",
  "record_count": 0
}

Documentation Index

Fetch the complete documentation index at: https://docs.primeintellect.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

run_id
string
required

Response

Successful Response

Per-run usage totals — drives prime train usage <run_id>.

run_id
string
required
training
RunUsageBreakdown · object
required

Token + cost totals for a single usage type within a run.

inference
RunUsageBreakdown · object
required

Token + cost totals for a single usage type within a run.

total_tokens
integer
required
total_cost_usd
number
required
pricing
RunPricing · object
required

Snapshotted per-million-token pricing used to bill the run.

run_name
string | null
base_model
string | null
status
string | null
record_count
integer
default:0