Core
Get Pricing
Get pricing information for models
This public endpoint does not require an API key.
Overview
Return current public model prices. The example response below shows the shape; prices change, so read the live response.
For the price tiers of one model, use Get Model Pricing.
Query Parameters
Optional model maker filter such as openai, anthropic, or google. An unknown value returns 400 invalid_provider.
Optional capability tag filter such as reasoning, tool-use, vision, or text-to-image. The values in a model's capabilities are valid tags. A tag that no model has returns an empty data array.
Response
Always pricing.
ISO timestamp when the current public prices were published.
Always USD.
Array of pricing entries. Each item includes model, provider, is_lock_price, capabilities, aliases, and the public scalar or structured pricing summary fields returned by the interactive schema above.
Request
curl "https://api.tokenlab.sh/v1/pricing?provider=openai&tag=reasoning"Response
{
"object": "pricing",
"updated_at": "2026-11-01T06:30:51.988Z",
"currency": "USD",
"data": [
{
"model": "gpt-5.5",
"provider": "openai",
"is_lock_price": false,
"capabilities": ["coding", "json-mode", "prompt-cache", "reasoning", "tool-use", "vision"],
"aliases": ["gpt-5-5"],
"deliveryAvailability": { "verified": true, "official": true },
"input_per_1m_tokens": "3.5",
"output_per_1m_tokens": "21",
"official_input_per_1m_tokens": "5",
"official_output_per_1m_tokens": "30",
"has_complex_pricing": true,
"supported_operations": []
},
{
"model": "allam-2-7b",
"provider": "sdaia",
"is_lock_price": false,
"capabilities": [],
"aliases": [],
"deliveryAvailability": { "verified": false, "official": true },
"official_input_per_1m_tokens": "0.05",
"official_output_per_1m_tokens": "0.08",
"has_complex_pricing": false,
"supported_operations": []
}
]
}input_per_1m_tokens, output_per_1m_tokens, and lock_price_per_request are Verified prices. They are omitted when deliveryAvailability.verified is false; such a model is billed at its Official price (official_input_per_1m_tokens, official_output_per_1m_tokens, or official_lock_price_per_request). Complex pricing entries may also include has_complex_pricing, supported_operations, and pricing_summary.
Related interfaces
Get Model Pricing returns the prices of one model. Model details remain the source for request fields and supported operations.
Query Parameters
Filter by model maker, for example openai, anthropic, google, or deepseek.
Filter by a capability tag such as reasoning, tool-use, vision, or text-to-image. The values in a model's capabilities are valid tags.
Response
application/json
application/json
application/json