v1

latestOpenAPI 3.0.3MIT2026-07-1721316.3 KB
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

FieldDescriptionUnit
request_token.priceInput token costcents/token
response_token.priceOutput token costcents/token
cache_write_input_token.priceCache write costcents/token
cache_read_input_token.priceCache read costcents/token
additional_units.*Provider-specific featurescents/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

currency'USD'

Currency code (always USD)

All 2 operations