Pricing
Get Model Pricing
Returns pricing configuration for a specific model.
Note: Prices are in USD cents per token.
Supported Providers
openai, anthropic, google, azure-openai, bedrock, mistral-ai, cohere, together-ai, groq, deepseek, fireworks-ai, perplexity-ai, anyscale, deepinfra, cerebras, x-ai, and 25+ more.
Example Response Fields
| Field | Description | Unit |
|---|---|---|
| request_token.price | Input token cost | cents/token |
| response_token.price | Output token cost | cents/token |
| cache_write_input_token.price | Cache write cost | cents/token |
| cache_read_input_token.price | Cache read cost | cents/token |
| additional_units.* | Provider-specific features | cents/unit |
get/model-configs/pricing/{provider}/{model}
Path parameters
providerstring required
Example:openai
Provider identifier. Use lowercase with hyphens.
Examples: openai, anthropic, google, azure-openai, bedrock, x-ai
modelstring required
Example:gpt-4
Model identifier. Use the exact model name as specified by the provider.
Examples: gpt-4, gpt-4o, claude-3-5-sonnet-20241022, gemini-2.0-flash-001
Response
Pricing configuration for the specified model