AI model pricing guide: what each model actually costs

Updated 2026-07-15

As of mid-2026, frontier models such as Claude Opus 4.7 and GPT-5.6 Sol list around $5 per million input tokens and $25 to $30 per million output tokens, while budget models such as DeepSeek V4 Flash and DeepSeek V4 Pro list under $1 per million tokens on both sides, a spread of roughly 35x on input and close to 100x on output. Output tokens typically cost three to six times more than input tokens across every major provider, so what a task returns matters more to the bill than what you send it. The gap between tiers is wide enough that picking the right model per task beats squeezing one flagship model into every job.

Quick answer: token prices span more than 100x.

Every major provider bills the same two ways: a rate per million input tokens and a higher rate per million output tokens. What changes between models is the number attached to each side, and that number moves in large steps. At the top, frontier reasoning and flagship models such as Claude Opus 4.7 and GPT-5.6 Sol list around $5 per million input tokens and $25 to $30 per million output tokens. At the bottom, budget models such as DeepSeek V4 Flash and DeepSeek V4 Pro list well under $1 per million tokens on both sides. That is roughly a 35x spread on input and close to 100x on output between the cheapest and priciest model most teams would actually put into production this year. Two things move a real bill more than the sticker price of any single model: the ratio of input to output tokens your workload actually produces, and whether you are paying each provider's list price directly or a discounted rate through a single gateway. The rest of this guide works through both with real numbers instead of a general rule of thumb.

How the bill is actually built.

Token pricing looks simple until you notice that "price" is really more than one number for some models. Every model has an input rate and an output rate, set independently and usually a wide margin apart. A growing share of current models add a third and fourth number on top: a premium rate to write a new entry into a prompt cache, and a steep discount to read that same entry back on a later call. GPT-5.6 Sol is a clean example of all four numbers living on one model. The input rate is the smallest of the four, the output rate runs six times higher, the cache-write rate sits above input, and the cache-read rate is a fraction of everything else. Reading only the headline input number and assuming that is "the price" is the single most common way people misjudge a model's real cost before they have sent a single request. Where the "official" number comes from also matters. Anthropic, OpenAI, Google, xAI, Zhipu AI, Moonshot AI, and MiniMax each set their own list price independently, and each one changes it on its own schedule as new versions ship. A gateway that carries many providers under one account can apply one consistent discount across all of them, which is a different lever from anything a single provider's pricing page controls.

Cache pricing is the exception on this catalog, not the rule. Most models bill a flat input and output rate with no separate cache tier.
Rate on GPT-5.6 Sol$ per million tokens
Input$4.00
Output$24.00
Cache write$5.00
Cache read$0.40

Worked example: what three real workloads cost.

Model each workload by its actual input and output token volume instead of guessing from the input rate alone. A chatbot mostly re-reads a growing conversation and writes short replies, so input tokens dominate. Code generation and long-form writing return far more than they receive, so output tokens dominate instead. A high-volume classification or extraction job sends a lot of text through a small, cheap model and gets almost nothing back. The table below prices three daily workloads at each provider's official list rate against the same models at our discounted catalog rate, then projects the gap over 30 days. The workload shape, not the model name, decides which column moves the most.

Assumes the stated token mix runs every day for 30 days. Recompute with your own input-to-output ratio before budgeting; it moves the total more than model choice does.
Workload (tokens/day)ModelOfficial cost/dayOur cost/day30-day savings
Chatbot: 1M in, 500K outclaude-sonnet-4-6$10.50$8.40~$63
Chatbot: 1M in, 500K outgpt-5.4$10.00$8.00~$60
Code generation: 500K in, 2M outclaude-sonnet-4-6$31.50$25.20~$189
Code generation: 500K in, 2M outgpt-5.3-codex-spark$28.88$23.10~$173
Classification: 10M in, 1M outgemini-3.5-flash$24.00$19.20~$144
Classification: 10M in, 1M outdeepseek-v4-flash$1.68$1.51~$5

Why the sticker price still surprises people.

None of this is exotic, it is just easy to miss when a pricing page shows one input number and one output number and stops there. Checking the actual token mix of a workload, and reading the fine print on any cache tier, avoids most of the surprise before a bill arrives. The fix is not to memorize every model's quirks. It is to price a workload the same way a provider does: input volume times input rate, plus output volume times output rate, and only then ask whether a cache tier changes the math because the same context gets reused.

  • Output tokens usually cost three to six times more than input tokens, so any task that writes code, long prose, or a reasoning trace shifts most of the bill to the output side even when the prompt itself is short.
  • Cache pricing looks like a built-in discount, but a cache-write fee only pays off if the same prefix actually gets read back on a later call. A cache written once and never reused is a pure extra cost, not a saving.
  • A newer model version can ship with a different tokenizer that counts the same sentence as more tokens than the version before it, so a same-priced upgrade can still raise the real bill on identical input text.
  • "Mini" and "flash" variants are not simply cheaper versions of the flagship in the same family. They are separate models with separate quality ceilings, so comparing purely on price without testing the real task creates a false saving.
  • List prices are not permanent. Every provider in this guide has repriced or replaced a model within roughly the last year, so a saved pricing table is a snapshot, not a contract.

Full comparison: premium, mid, and budget tiers.

Grouping models by list price makes the tradeoffs easier to see than reading them one at a time. Premium models cluster around $5 input and $25 to $30 output. Mid-tier models sit between $2 and $3 input with output ranging from $6 to $15. Budget models keep input at $1 or under; output among the Chinese-provider models in this table ranges from under $1 for DeepSeek's tiers up to roughly $4 for Kimi K2.6. Official figures are each provider's own public list price; the right two columns are the same models at our catalog rate.

Catalog prices, current as of publication, USD per million tokens. Official figures are each provider's public list price and move independently of this table.
Model IDProviderTierOfficial inputOfficial outputOur inputOur output
claude-opus-4-7AnthropicPremium$5.00$25.00$4.00$20.00
gpt-5.6-solOpenAIPremium$5.00$30.00$4.00$24.00
gpt-5.5OpenAIPremium$5.00$30.00$4.00$24.00
claude-sonnet-4-6AnthropicMid$3.00$15.00$2.40$12.00
gpt-5.4OpenAIMid$2.50$15.00$2.00$12.00
gemini-3.1-pro-previewGoogleMid$2.00$12.00$1.60$9.60
grok-4.5xAIMid$2.00$6.00$1.60$4.80
claude-haiku-4-5AnthropicBudget$1.00$5.00$0.80$4.00
gpt-5.4-miniOpenAIBudget$0.75$4.50$0.60$3.60
kimi-k2.6Moonshot AIBudget$0.95$4.00$0.855$3.60
glm-5Zhipu AIBudget$0.571$2.571$0.514$2.314
deepseek-v4-proDeepSeekBudget$0.435$0.87$0.3915$0.783
MiniMax-M2.7MiniMaxBudget$0.30$1.20$0.27$1.08
deepseek-v4-flashDeepSeekBudget$0.14$0.28$0.126$0.252

How to actually lower the bill.

That last lever changes where a request bills, not how you write it, which is why it stacks with every other item on this list. APIsRouter is an OpenAI-compatible gateway with pay-as-you-go billing and no subscription: global models such as the ones in the table above are priced 20% below official list, Chinese-provider models sit below their own official rates, the first top-up adds a 100% balance bonus, and the no-signup checkout at /topup takes payment first and emails the key. Swapping the base URL below is the only change an existing integration needs.

  • Start with the cheapest model that can plausibly do the job and upgrade only when quality actually fails on your real inputs, instead of defaulting to the flagship for everything.
  • Weigh output-heavy tasks differently. Code generation, long-form writing, and reasoning traces burn far more output than input, so a low output rate matters more there than a low input rate.
  • Use cache pricing deliberately where a model supports it. A cache write only pays for itself across multiple reads of the same system prompt or long context, not a single call.
  • Track spend per API key or per project, not just per invoice, so a workload that quietly shifted to a pricier model shows up before the monthly total does.
  • Recheck official pricing pages on a quarterly cadence. Every provider in this guide has changed a rate or retired a model within roughly the last year.
  • Lower the per-token rate itself by billing through a discounted OpenAI-compatible endpoint instead of paying each provider's direct list price.

Point an existing integration at the same catalog.

If a project already uses the OpenAI SDK or a plain HTTPS client, changing the rate it pays is a one-line edit: swap the base URL, keep the same request shape, keep the same model IDs. Verify a new key with a small request before wiring it into anything that matters.

from openai import OpenAI

client = OpenAI(
    api_key="sk-APIsRouter-...",
    base_url="https://api.apisrouter.com/v1",
)

response = client.chat.completions.create(
    model="claude-sonnet-4-6",  # swap for any catalog model ID
    messages=[{"role": "user", "content": "Reply with one word: ok"}],
)
print(response.choices[0].message.content)

FAQ

How much does it cost to run a model like GPT or Claude through the API?

It depends far more on tier than on provider. Current frontier models list around $5 per million input tokens and $25 to $30 per million output tokens. Mid-tier models sit around $2 to $3 input and $12 to $15 output. Budget models keep input under $1 per million tokens across the board, while output among Chinese-provider models ranges from well under $1 up to roughly $4.

Why do output tokens cost more than input tokens?

Generating text is computationally heavier than reading it, and providers price that difference in directly. The output rate on most current models runs three to six times the input rate, so a task that returns long answers, code, or reasoning traces can cost far more than its prompt length suggests.

Do AI model prices actually change that often?

Yes. Every major provider covered in this guide has introduced a new model, retired an old one, or adjusted a rate within roughly the last year. Treat any pricing table, including this one, as a snapshot of the date it was written, and check a live pricing page before budgeting a production workload.

Is a "mini" or "flash" model just a cheaper version of the flagship?

No. It is a separate model with its own capability ceiling, not a discounted flagship. It can be the right call for classification, extraction, or routing, and the wrong call for anything that needs the flagship's reasoning depth, so test it on the actual task before moving a production workload to save money.

What is the cheapest way to test several AI models before committing to one?

APIsRouter is a pay-as-you-go OpenAI-compatible gateway with no subscription: the /topup checkout takes payment first and emails a key with no signup form, the first top-up adds a 100% balance bonus, and every catalog model runs on the same base URL, so comparing a flagship against a budget model on the same task is a one-line model-name change, not a new account.

What is the real price gap between the cheapest and priciest model?

On this catalog, roughly 35x on input tokens and close to 100x on output tokens between the top premium model and the cheapest budget model. The gap is wide enough that picking the right model per task saves more than any prompt optimization does.