AI API Token Pricing Comparison

250 models across 19 providers, updated — compare input, output, and cached API prices in USD per million tokens.

Relative priceLowestLowerHigherHighestAutomatic log scale across current offers; input, cache and output are graded separately. Color shows cost, not quality.
Showing 30 of 30 grouped models from 37 offers · USD per 1M tokens
Last synced:

How we verify pricing data and normalize token costs.

Sponsored links may earn us a commission at no extra cost to you. Affiliate status never changes model ordering.

All product names, logos, and brands are property of their respective owners and are used for identification purposes only.

Showing featured models. Loading all models for search and filters…

Verified · GPT-6 Luna source · GPT-6.1 Sol source · Claude Sonnet 5.5 source · DeepSeek V4.1 Flash source · How we verify →

Compare pay-as-you-go API prices in USD per 1 million tokens, updated ; for monthly ChatGPT, Claude, Gemini, and Copilot plans, use subscription pricing, and verify rates directly before purchase because providers can change them without notice.

New decision-model route: TypeSafe Jev is $0.042 per million input tokens with free output on its direct System One API. It returns typed decisions rather than open-ended text; Opper gateway fees are separate.

New open-weight model: Aleph Alpha's Kolibri has downloadable Apache 2.0 weights, but no hosted input/output token rate is published in the checked official sources., so it is not shown as a misleading zero-cost row in this priced table or JSON feed.

Flagship and frontier model price spread; input plus output per million tokens

Which AI API is cheapest right now? We track 250 models across 19 providers. The cheapest flagship is DeepSeek V3.2 at $0.27 per 1M input tokens; the absolute cheapest production model is Llama 3.1 8B Instruct at $0.02 per 1M input. The most expensive we track is o1-pro at $150.00 input / 600.00 output. Download the raw data as JSON.

Novita open-model API

One API for Llama, Qwen, DeepSeek and GLM — new accounts get $100 in sandbox credits for 90 days.

Get $100 sandbox credits

Affiliate disclosure: sponsored links may earn us a commission at no extra cost to you. Affiliate status never changes model ordering.

Frequently asked questions

Quick answers about API token pricing, freshness, and how to compare providers.

What does this AI API pricing comparison cover?

This page tracks pay-as-you-go API token pricing for 250 AI models across 19 providers — OpenAI, Anthropic, Google, DeepSeek, Mistral, xAI, Cohere, Groq, Together AI, Perplexity, and Meta Llama hosts. Each row shows input price, output price, cached-input price (where the provider offers prompt caching), and batch-discounted rates per million tokens. The data snapshot shown is from 2026-10-25.

How often is the pricing data updated?

The shared pipeline is scheduled every four hours; a successful run does not mean every model was re-verified. Use each row’s verification date and source, with confidence rules explained at /methodology/. The dataset snapshot is 2026-10-25, not a verification date for every price.

Which AI API is the cheapest right now?

As of 2026-10-25, the absolute cheapest production model we track is Llama 3.1 8B Instruct at $0.02 per million input tokens. The cheapest flagship-class model — meaning a top-tier model from a major lab, not a small or distilled variant — is DeepSeek V3.2 at $0.27 per million input tokens. The most expensive model we track is o1-pro at $150.00 input / 600.00 output per 1M tokens.

How do I compare two specific AI providers like OpenAI and Anthropic?

Use the table search and filter controls above to narrow to a single provider, then sort by input or output price. For deeper provider-level pages with FAQs, methodology, and historical pricing, see /openai-pricing/, /anthropic-pricing/, /google-ai-pricing/, /deepseek-pricing/, /mistral-ai-pricing/, /cohere-pricing/, or any other provider listed. For workload-level math, the token cost calculator at /calculators/token-cost/ runs your input/output volume against every model side-by-side.

Should I pay per token via API or subscribe to ChatGPT Plus or Claude Pro?

Choose a subscription for interactive work in its app, and API access for programmatic workloads. Compare the full plan fee against your expected input, output and tool charges rather than assuming a subscription includes API access. The /subscription-vs-api/ tool estimates the break-even point for your volume.