Model pricing database

AI Models Pricing Comparison

Input, cached input, output and batch prices per 1M tokens for OpenAI, Claude, Gemini and other models, each linked to the official source. Search, sort, or tick up to four models to compare them.

USD per 1M tokens, standard rates. Models without a listed price sort last.

CompareProvider / modelInput / 1M tokensOutput / 1M tokensBatch in / outContextVerified How we verify
Grok 3retiredProvider: xAIModel ID: grok-3
DetailsAvailability: Retired; requests redirect to Grok 4.3Current redirected billing. Input $1.25 / cached $0.20 / output $2.50 per 1M tokens. xAI retired grok-3 on 2026-05-15 at 12:00 PM PT. Requests to grok-3 continue to resolve but automatically redirect to grok-4.3 with none reasoning effort and are billed at Grok 4.3 pricing. Historical Grok 3 pricing is preserved in metadata. This price could not be confirmed against the provider's current official source, so it is shown only as a fallback reference, not as a verified current price.
Input · USD per 1M input tokens$1.25Cached input · USD per 1M cached input tokens$0.20Output · USD per 1M output tokens$2.50Not listed1M via Grok 4.3 redirectNov 23, 2026Official source ↗
DeepSeek V4 FlashretiredProvider: DeepSeekModel ID: deepseek-v4-flash
DetailsAvailability: StandardCache miss input / cache hit input / output. Input $0.30 / cached $0.006 / output $1.20 per 1M tokens. Supports non-thinking and thinking mode. Legacy deepseek-chat and deepseek-reasoner aliases map to this model family until deprecation. This price could not be confirmed against the provider's current official source, so it is shown only as a fallback reference, not as a verified current price.
Time-based pricingOff-peak: Input $0.15 · Cached $0.003 · Output $0.60Peak: Input $0.30 · Cached $0.006 · Output $1.20Peak hours: 01:00–04:00 and 06:00–10:00 UTC, Monday through Friday, except Chinese public holidays. All other times, including weekends and Chinese public holidays, use off-peak pricing.
Input · USD per 1M input tokens$0.30Cached input · USD per 1M cached input tokens$0.006Output · USD per 1M output tokens$1.20Not listed1MNov 5, 2026Official source ↗

Compare this workload before you switch

After you compare list prices, apply the same token workload to a current and target model to see monthly and annual bill impact.

Calculate switching impact

Check the margin before you price an AI feature.

If model choice changes what a free or paid tier of your product can include, run the numbers through the AI SaaS margin calculator first.

Open Margin Calculator
Important pricing note

Estimates for planning only, not financial or legal advice. Prices can change, so verify on the provider's pricing page; your provider bill is the final source of truth. Full terms

Where these prices come from

Pricing records are maintained and verified against official provider sources. This comparison uses the same verified pricing dataset as every other AICostBudget page. It is not a live billing feed.

Download the data

View the AI API pricing dataset guide for provider-level source links, downloads, null-value handling, and verification timestamps.

Recent price changes

See recent verified AI model price changes with before-and-after rates, verification dates, and official provider sources.

Use this page for OpenAI API pricing checks

If you are checking an OpenAI API pricing change, start by verifying official OpenAI pricing, then use this comparison page to review input token price, output token price, cached-input assumptions, context window, and nearby Claude or Gemini alternatives. Prices can change, so treat this table as planning data and confirm official provider pages before launch.

How to read model pricing

Most AI providers list separate prices for input tokens and output tokens. Input tokens are the instructions, context, documents, and user messages you send. Output tokens are generated by the model and are often the more expensive part of a workflow. Use this AI model cost comparison before finalizing an AI token budget or monthly API cost estimate.

Example: cheap input can still become expensive

A model with low input pricing can still be costly if it generates long answers, requires retries, or needs long prompts to achieve acceptable quality. Compare the total workflow cost, not just the lowest price in one column.

Choose models by application scenario

For customer support FAQ, classification, tagging, and simple extraction, start with a lower-cost model and measure success rate. For legal review, complex coding, financial analysis, multi-step AI agents, or high-value enterprise support, compare stronger models because fewer failed tasks can be worth the higher token price. A practical model cost comparison should connect price, quality, context length, latency, and retry risk to the application you are building.

When to use premium models

Premium models make sense for workflows where a better answer saves human review time, reduces failed tasks, or supports high-value customers. For routing, extraction, classification, and simple transformations, a smaller model is often enough.

Related model pricing guides

To see how model choice affects a scaled SaaS forecast, read OpenAI API cost for 10,000 users. If you are comparing paid models after searching for a free OpenAI API key, read why unlimited free API access is not a production plan. For routing, limits, and fallback planning, use the AI API cost control guide.

For provider-specific source pages, review OpenAI API pricing, Anthropic Claude API pricing, and Google Gemini API pricing.

After comparing model prices, calculate your expected monthly API bill from tokens, requests, active users, and selected model pricing. If prompt size is driving the result, reduce prompt and token costs before finalizing the route. You can also use the token calculator to size prompts, then estimate workflow costs with your selected model using tasks per day, calls per workflow, and expected token usage.

Frequently asked questions

What is AI model cost comparison?

AI model cost comparison means comparing input token price, output token price, cached-input price, context window, provider, and task quality before choosing a model for an AI API workflow.

What is a model pricing comparison page used for?

A model pricing comparison page helps teams compare OpenAI, Claude, Gemini, DeepSeek, Grok, and other AI model prices before estimating monthly API cost or choosing a production route.

How do I run an OpenAI, Claude, and Gemini pricing comparison?

For an OpenAI Claude Gemini pricing comparison, review input price, output price, cached-input discounts, context length, and the workload you plan to run. A low input price can still be expensive if the model produces long outputs or needs retries.

How do I compare AI model prices for API cost?

Start with realistic input tokens and output tokens for one request, apply each model's token prices, then multiply by request volume and active users. After comparing model prices, use an API cost estimator to turn the unit price into a monthly API cost estimate.

Why does input vs output token pricing matter?

Input tokens are the prompt, user message, chat history, and retrieved context you send to the model. Output tokens are generated by the model and are often more expensive, so long answers can dominate the final API bill.

What is the cheapest AI model for API cost?

The cheapest AI model for API cost depends on task quality, output length, and retry rate. Smaller or lite models are often cheapest for classification, routing, tagging, and simple extraction, while stronger models may be worth the higher price for complex or high-value tasks.

Should I always choose the lowest token price?

No. A cheaper model can cost more if it needs retries, produces lower quality, or requires longer prompts. Compare total workflow cost, not only list price.