Get usage
Account
Get usage
GET /v1/dashboard/billing/usage — spend over a time range
GET
Get usage
Query the cumulative spend over a specified time range (in USD).
Maximum span 100 days.
It returns, for each call: model, tokens, latency, charge, Request ID, IP and more.
Request
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
start_date | string | ✅ | YYYY-MM-DD, inclusive of this day |
end_date | string | ✅ | YYYY-MM-DD, exclusive of this day |
Response
total_usage is in USD ×100 (i.e. 12.43 = $0.1243), consistent with OpenAI’s convention.
However, the OpenPAI console / logs display in RMB; refer to the console for the exact conversion.