Skip to content

Usage

Usage endpoints return spend data tracked by the platform. All endpoints require authentication.

GET /api/usage

Returns aggregated usage across all your keys.

ParameterTypeDescription
startDatestringStart date (ISO 8601, e.g. 2026-01-01)
endDatestringEnd date (ISO 8601)
Terminal window
curl "https://api.cheapestinference.com/api/usage?startDate=2026-01-01&endDate=2026-02-01" \
-H "Authorization: Bearer YOUR_AUTH_TOKEN"

GET /api/usage/:keyId

Returns usage data for a specific key.

Terminal window
curl https://api.cheapestinference.com/api/usage/clx1abc... \
-H "Authorization: Bearer YOUR_AUTH_TOKEN"

GET /api/plans

Returns all available plans with rate limits and pricing. No authentication required.

Terminal window
curl https://api.cheapestinference.com/api/plans
[
{
"slug": "standard",
"name": "Standard",
"priceUsdc": "20",
"rateLimits": {
"tpm_limit": 3333,
"rpm_limit": 60
}
},
{
"slug": "pro",
"name": "Pro",
"priceUsdc": "60",
"rateLimits": {
"tpm_limit": 13333,
"rpm_limit": 200
}
}
]