Finding a Model
The Model Square page is your starting point for exploring available models and their pricing. Use the search bar to find models by entering keywords such as:- Model name (e.g.,
claude-3-5-sonnet) - Provider name (e.g.,
Anthropic,Google) - Endpoint name (e.g.,
chat/completions) - Model tag (e.g.,
128k,vision)
Once you find a model, click Details to view its full pricing breakdown, context window, maximum output, supported modalities, API compatibility, and other metadata.
Understanding the Pricing Display
Model pricing is shown per 1 million tokens. Depending on the model and provider, you may see any combination of the following pricing items:General Price Calculation
For standard token-based usage, you can estimate your cost using the following formula:Worked Example
Assume a model with the following base pricing is used for a single API request with these token counts:
If your API key belongs to a group with a
1.2x ratio, the final charge is:
Claude Model Pricing
Claude models use separate rates for input, output, and two types of cache writes, each priced relative to the base input token price. Anthropic defines the following cache multipliers:
A cache write is charged when content is stored in the cache. A cache read is charged when a subsequent request reuses that cached content. These rules are provider-specific and only apply when prompt caching is enabled and used.
For Claude models, the general cost formula is:
OpenAI Model Pricing
OpenAI-compatible models separate pricing into input tokens, cached input tokens, and output tokens. If the provider returns cached input, the platform applies the cache read price for that model.OpenAI pricing does not use the 5-minute and 1-hour cache write model that Claude uses. When cached input is returned by OpenAI, the cache read rate applies automatically.
Gemini Model Pricing
Gemini models can include input tokens, output tokens, cached input, audio input, and context cache storage charges. Several Gemini models also apply tiered pricing based on prompt size:
When a request exceeds the 200k-token threshold and the selected model uses tiered pricing, the higher tier is applied according to the model’s configured pricing.
For Gemini models, the general cost formula is: