AI Model Rankings 2026: Most Cost-Effective Models

ai model comparison

The cheapest AI models for inference in 2026 depend on the workload, not just the advertised price per million input tokens. A model that costs less for short replies can become expensive with long prompts, missed caches, reasoning tokens or repeated agent calls.

Want to compare costs for your own workload? The free DIY AI Model Cost Planner estimates monthly API spending based on request volume, input and output tokens, caching, retries, and batch processing. Compare three scenarios without an account, API key or Studio credits. Eligible Studio members can also save private projections and export CSV reports.

This comparison covers current managed API rates, an open-weight alternative, three fixed token budgets and a new worked example involving 10,000 document-analysis jobs. The figures are calculated from published rates, not a claim that DIY AI ran a controlled cross-provider accuracy or latency benchmark. Where the cheapest model would be a poor deployment choice, we make the limitation explicit.

Quick verdict: cheapest inference models by workload

WorkloadModels worth testing firstWhyConstraint
Lowest existing-account list priceGemini 2.5 Flash-Lite$0.10 input / $0.40 output per million tokensGoogle restricts 2.5 model access for new projects
Cheap default for a new API applicationGPT-6 Luna or Claude Haiku 5.5Both start at $0.10 input / $0.50 outputLuna has a 272k-token pricing step; Haiku has a 100k-token step
Queueable, input-heavy tasksDeepSeek V4.1 Flash-1017$0.15 / $0.60 off-peak, with inexpensive cached inputPeak-hours prices double
Open-weight deploymentMistral Small 4$0.15 / $0.60 managed rate and Apache 2.0 weights256k context and self-hosting overhead
Multimodal and long-context processingGemini 3.8 Flash1M context and $0.75 / $3.75 introductory ratePublished rates double on 1 January 2027
Complex code and agent escalationGPT-6.1 Sol or Claude Sonnet 5.5Both list $2 / $10 before caching and toolingComparable token prices do not demonstrate equal task success
Premium, difficult tasksGemini 4 Argon, Claude Opus 5.5 or GPT-6 AstraPay more only where a stronger result justifies itArgon has a temporary introductory rate; Astra is costly for routine traffic

Practical starting point: test GPT-6 Luna and Claude Haiku 5.5 for a new text-first application, then DeepSeek V4.1 Flash-1017 if its hosting and off-peak schedule suit the job. Gemini 2.5 Flash-Lite remains a genuine price-floor comparison for existing eligible users, but should not be presented as a universally accessible new-project recommendation.



Cheapest AI models for inference in 2026: November API prices

Rate check: 6 November 2026. Prices are US dollars per one million text tokens using standard, first-party managed APIs. Cached input is the read or hit rate, not the initial cost of creating a cache. Published context windows are rounded. The selection is representative of budget and escalation tiers, not every model or inference host in the market.

ModelInput / 1MCached input / 1MOutput / 1MContextCost condition
Gemini 2.5 Flash-Lite$0.10$0.01$0.401MLegacy model; check project eligibility and retirement dates
GPT-6 Luna$0.10$0.01$0.501.05MHigher full-request rate above 272k input tokens
Claude Haiku 5.5$0.10$0.01$0.501MHigher full-request rate above 100k input tokens
DeepSeek V4.1 Flash-1017, off-peak$0.15$0.003$0.601MOff-peak only; peak input/read/output: $0.30 / $0.006 / $1.20
Mistral Small 4$0.15No separate discount assumed$0.60256kManaged API; no separate cache discount assumed; self-hosting is separate
Gemini 3.1 Flash-Lite$0.25$0.025$1.501MStill-listed older Flash-Lite tier
Gemini 3.5 Flash-Lite$0.30$0.03$2.501MCurrent Flash-Lite family; explicit cache storage costs extra
Gemini 3.8 Flash$0.75$0.075$3.751MIntroductory input/read/output become $1.50 / $0.15 / $7.50 on 1 January 2027
GPT-6.1 Terra$1.00$0.05$5.001.05MHigher full-request rate above 272k input tokens; article-only entry
Grok 4.7$2.00$0.50$6.00500kHigher full-request input/read/output $4 / $1 / $12 at 200k prompt tokens or more
Claude Sonnet 5.5$2.00$0.10$10.001MCache writes billed separately where used
GPT-6.1 Sol$2.00$0.10$10.001.05MHigher full-request rate above 272k input tokens
Gemini 4 Argon$2.00$0.10$10.001MIntroductory input/read/output become $4 / $0.20 / $20 on 1 December 2026
Claude Opus 5.5$4.00$0.20$20.001MPremium tier; cache writes billed separately
GPT-6 Astra$10.00$1.00$50.001.05MLong-context premium above 272k input tokens

Google’s Gemini Developer API pricing confirms the dated Flash and Argon promotional rates. For a product expected to run into 2027, budget against the announced higher prices as well as those shown above. Third-party gateway prices, batch processing, free tiers, location premiums and enterprise agreements are excluded.

Sources checked for this update: OpenAI API pricing and the GPT-6.1 Terra specification; Anthropic pricing; Google Gemini pricing; DeepSeek pricing; Mistral Small 4; and Grok 4.7. DeepSeek’s current API identifier is deepseek-flash, served by V4.1 Flash-1017. Peak periods are 01:00–04:00 and 06:00–10:00 UTC on weekdays, excluding Chinese public holidays; its off-peak row applies outside those periods. Search, fetch and other paid tools are additional to the token figures.

What changed in this November update

This update adds the free workload planner, GPT-6.1 Terra and Grok 4.7, and recalculates the retry example using the same uncached-retry assumption as the app. The previous price order needs to be read alongside current context thresholds and access conditions. GPT-5.6 Luna was previously the inexpensive OpenAI option at $0.20 / $1.20; GPT-6 Luna is now listed at $0.10 / $0.50. Claude Haiku 5.5, released on 7 October, has joined that price band, although its higher rate above 100k input tokens changes the economics of large requests.

Claude Sonnet 5.5 replaced Sonnet 5 as the current model at $2 / $10, with a lower $0.10 cached-input read rate. GPT-6.1 Sol is the newer OpenAI middle-tier reference at $2 / $10; Claude Opus 5.5 is $4 / $20. Google’s Gemini 4 Argon arrived on 13 October at a temporary $2 / $10 rate, rising to $4 / $20 on 1 December. None of those changes proves a quality winner. They change which models deserve a fresh evaluation and which historical cost figures to retire.

Advertised price versus three identical token budgets

To isolate billing arithmetic, we apply the same three token counts to each model: short response (2,000 input, 500 output), document analysis (300,000 input, 5,000 output), and single coding call (20,000 input, 5,000 output). No cache hits, retries, tools or batch discounts are assumed here. These are illustrative token budgets, not measured outcomes on equivalent source documents; each model’s tokeniser and reasoning behaviour may produce different actual counts.

ModelShort response300k documentCoding call
Gemini 2.5 Flash-Lite$0.00040$0.03200$0.00400
GPT-6 Luna$0.00045$0.06375$0.00450
Claude Haiku 5.5$0.00045$0.16250$0.00450
DeepSeek V4.1 Flash-1017, off-peak$0.00060$0.04800$0.00600
Mistral Small 4$0.00060Exceeds 256k context$0.00600
Gemini 3.1 Flash-Lite$0.00125$0.08250$0.01250
Gemini 3.5 Flash-Lite$0.00185$0.10250$0.01850
Gemini 3.8 Flash$0.00337$0.24375$0.03375
GPT-6.1 Terra$0.00450$0.63750$0.04500
Grok 4.7$0.00700$1.26000$0.07000
Claude Sonnet 5.5$0.00900$0.65000$0.09000
GPT-6.1 Sol$0.00900$1.27500$0.09000
Gemini 4 Argon$0.00900$0.65000$0.09000
Claude Opus 5.5$0.01800$1.30000$0.18000
GPT-6 Astra$0.04500$6.37500$0.45000

The 300k-token document exposes the traps. Haiku 5.5 costs $0.16250 rather than $0.03250 because the whole request moves to its higher tariff. Luna’s long-context multiplier raises its cost to $0.06375, still below Gemini 3.1 Flash-Lite’s $0.08250 in this specific calculation. Grok 4.7 rises to $1.26; Mistral Small 4 cannot accept the full prompt in a single call. These figures say nothing about answer quality or whether splitting and retrieving the document would perform better.

Use the planner to turn token prices into a monthly budget

The Model Cost Planner launches with eight built-in models across OpenAI, Anthropic and Google. This article covers a wider selection, including conditional off-peak and legacy rates. You can enter your own model rates in the app; check the provider’s context thresholds and processing conditions separately for a custom entry. The lowest projection is the lowest among the models you selected, subject to the assumptions you entered.

Monthly estimate = initial calls × token cost per call + additional uncached attempts × retry token cost. Input is split into uncached tokens, discounted cache reads and any cache writes. Each bucket uses its own price per million tokens. The app applies supported long-context rates to the full qualifying request, then applies the batch discount where selected and converts the total using the exchange rate you supply. Batch with caching is deliberately excluded from this model.

For the worked document pipeline, enter 10,000 monthly requests, 10,000 input tokens, 500 output tokens, 64% cache reads, 0% cache writes, 1,000 additional attempts, and 10,000 input / 500 output tokens per attempt. Leave batch off and use USD at an exchange rate of 1. GPT-6 Luna and Claude Haiku 5.5 each project $7.990; Claude Sonnet 5.5 projects $153.400. Those amounts match the table below. The 9,800 accepted jobs are an illustrative quality assumption used only for the article’s per-accepted-job column, not an accuracy prediction made by the app.

Try expected, lower-volume and higher-volume scenarios before committing to a provider. Compare them free in the browser; use Studio if you want to save the assumptions and original dated rates for a later review. The planner does not send prompts to models or run performance tests, and sample-text token estimates are approximate. Use actual API-reported token counts when you have them.

Worked example: 10,000 jobs with cache hits and retries

A more useful cost comparison is a repeated document-review pipeline. Model 10,000 jobs, each sending 10,000 input tokens and generating 500 output tokens. Of the input, 8,000 tokens are an identical policy or instruction prefix, and 2,000 are job-specific. Assume 80% of that reusable prefix is served from a discounted prompt cache. That means 64 million cached and 36 million uncached input tokens across the initial 10,000 calls, plus five million output tokens.

Now assume 10% of jobs need one full-size retry, with 80% of those retries accepted. The run makes 11,000 billed calls and accepts 9,800 jobs. For a controlled arithmetic comparison, we assign every model the same hypothetical pass pattern. Cache hits apply to the initial calls only; the 1,000 additional attempts are billed as uncached full-size calls, matching the planner. That is a sensitivity test, not a DIY AI measurement of any model’s actual reliability.

Model10k jobs, no cache or retriesCache on initial calls + uncached retriesCost per 1,000 accepted jobs
Gemini 2.5 Flash-Lite$12.00$7.440$0.759
GPT-6 Luna$12.50$7.990$0.815
Claude Haiku 5.5$12.50$7.990$0.815
DeepSeek V4.1 Flash-1017, off-peak$18.00$10.392$1.060
Mistral Small 4$18.00$19.800$2.020
Gemini 3.8 Flash$93.75$59.925$6.115
GPT-6.1 Terra$125.00$76.700$7.827
Claude Sonnet 5.5$250.00$153.400$15.653

How to read this: the middle column is a modelled marginal inference bill with 10% extra uncached calls, not a validated monthly invoice. Initial cache writes, optional cache-storage rental, paid tools and infrastructure are excluded. Mistral is conservatively billed at its published standard input rate throughout because a separately priced cached-input rate is not listed in the rate card used here. Google’s paid explicit caching can incur storage charges; an 8,000-token cache held for 720 billable hours at $1 per million tokens per hour would add $5.76 before request charges. Implicit cache hits should not automatically be assigned that explicit-storage cost.

The exercise also explains why a gateway’s headline cache discount is a weak forecast. Developers who repeatedly compare inference hosts find that the achieved prefix-cache hit ratio varies with routing, cache lifetime, and prompt construction. Caching a full identical response is not the same as getting discounted reads for a reusable prompt prefix. Log actual cached token counts rather than assuming that every repeated instruction will hit.

When DeepSeek can beat Luna despite a higher headline rate

Consider one input-heavy off-peak request with 50,000 input tokens, of which 45,000 are billed as cache hits, and 200 output tokens. At the listed prices, DeepSeek V4.1 Flash-1017 costs $0.001005; GPT-6 Luna costs $0.001050. DeepSeek’s particularly low $0.003 cached-input rate narrowly reverses the ordering seen in short-response examples. The advantage disappears if the cache misses more often, the request falls in a peak period, or the model consumes additional output tokens. This is why you should evaluate the input/output mix and realised caching together.

The thresholds that can overturn an inference-cost forecast

  • 100k input tokens: Claude Haiku 5.5 has higher pricing for a prompt above this threshold, including its output and cached-input categories. Do not apply its $0.10 / $0.50 headline rate to a 300k document.
  • 200k prompt tokens or more: Grok 4.7 moves to $4 input and $12 output, with a separate higher cached rate. See our Grok pricing breakdown for that provider’s wider product and API billing.
  • 272k input tokens: OpenAI’s GPT-6 family uses long-context rates for the full qualifying request. For Luna, those are $0.20 per million input tokens and $0.75 per million output tokens.
  • 256k context ceiling: Mistral Small 4 must use retrieval, splitting or another model for a 300k-token single-prompt job. Adding a second call is not automatically cheaper if it loses information needed to answer accurately.
  • Published price changes: Gemini 4 Argon’s current $2 / $10 becomes $4 / $20 from 1 December 2026; Gemini 3.8 Flash’s $0.75 / $3.75 becomes $1.50 / $7.50 from 1 January 2027.

Provider-specific tokenisers also matter. Anthropic says the newer Claude tokeniser can produce roughly 30% more tokens for the same text than earlier Claude versions. A table that forces identical token counts across companies is useful for checking tariffs, but actual invoices need token counts returned by each API.

Your search, your sources
Make DIY AI a preferred source

See more of our reporting in Google Top Stories, AI Overviews and AI Mode.

Add DIY AI on Google

For coding agents, price the complete session rather than a single call

A repository agent can read the same files repeatedly, append tool output, retry a patch and rerun tests before delivering one accepted change. A $0.00450 single-call Luna example does not establish that an entire coding session will cost $0.00450. A stronger model may cost more per call but need fewer repair loops. Conversely, an expensive model can waste its advantage by carrying excessive repository context through every step.

Run every candidate on the same repository snapshot, test command, tool permissions and stopping conditions. Record model identifier, total calls, cache reads and writes, input and output tokens, reasoning usage where exposed, tool charges, passing tests and human intervention. Compare total API and tool spend divided by accepted tasks, and report wall-clock time alongside it. Repeat runs to expose variability rather than declaring a winner after one successful task.

This page compares model API inference economics. Claude Code subscriptions, plan limits and the relationship between subscription usage and direct API billing belong in the separate Claude Code pricing guide, not in the cross-model token ranking.

How to select the cheapest model that actually works

  1. Choose the unit of work. A valid structured extraction, accepted customer reply, passing code change or complete research answer should be the denominator.
  2. Use representative prompts. Include the difficult 10%: unusually long documents, malformed input, mixed languages and cases known to trigger rework.
  3. Fix the workflow before comparing. Keep retrieval rules, tools, schema checks, timeout policy and maximum retries consistent. Record exceptions if one API does not support an identical configuration.
  4. Capture realised usage. Separate uncached input, cached reads, cache writes, generated output, reasoning, tool calls and failed attempts. Record the exact endpoint and date.
  5. Set a minimum acceptable pass rate. Filter out models that fail it before sorting the remaining candidates by full cost per accepted task and latency.

For a production router, a constrained low-cost default with a targeted second tier is often more economical than sending all jobs to a flagship. Escalate on detectable risk or validated failure modes rather than automatically invoking a premium model after every first response. If using a third-party host, verify which model is actually served, how cache hits are reported and whether token billing matches the provider’s documentation.

DIY AI also publishes its separate tool-evaluation methodology and AI text-generation dataset. Those editorial capability scores are distinct from the modelled inference costs on this page and are not used to invent pass rates.

FAQs about cheap AI inference

What is the cheapest AI model for inference in 2026?

Among the models compared here, Gemini 2.5 Flash-Lite has the lowest listed output-token rate at $0.40 per million, but Google restricts access for new projects. For a new text-first deployment, GPT-6 Luna and Claude Haiku 5.5 both start at $0.10 input and $0.50 output per million tokens. The cheapest accepted result will depend on your workload and measured failure rate.

Is prompt caching always cheaper?

Not necessarily. Cache reads have lower per-token prices, but they require eligible repeated context and actual hits. Explicit cache writes, or storage, can add charges, while rapidly changing prompts may never reuse enough tokens to repay the setup.

Why is a 300k-token document unexpectedly expensive?

Some providers charge a higher long-context tariff for the entire request. Others cannot accept a document that large in a single prompt. Retrieval, chunking and answer verification may be better than sending all 300k tokens every time.

Are the figures DIY AI benchmark results?

No. The comparison checks rate cards and calculates controlled token-budget scenarios. It does not measure model accuracy, first-pass acceptance, latency or cache-hit rates. You must test and log those against the reader’s actual application before choosing a production winner.

Verdict: buy accepted results, not cheap input tokens

For new low-volume or high-volume text apps, begin with GPT-6 Luna and Claude Haiku 5.5, then challenge them with DeepSeek V4.1 Flash-1017 and any appropriate Google Flash tier. Keep Mistral Small 4 on the list when open weights or deployment control justify extra engineering. For complex agents, put GPT-6.1 Sol, Claude Sonnet 5.5 and Gemini 3.8 Flash through the same acceptance test rather than ranking them on token price alone.

Recheck the price table after announced promotion dates and whenever your prompt length, cache-hit rate or retry policy changes. Use the free Model Cost Planner to compare your expected bill, then validate quality on representative tasks. The winner is the model that repeatedly meets your quality threshold for the lowest total cost per accepted job.

You Might Also Like:

Best AI Audio Generation Tools in 2026

Best AI Audio Tools

By: Steven Jones On:
Updated on: November 20, 2026
ElevenLabs is the best AI Audio generation tool in 2026 for most people who need realistic text-to-speech, expressive delivery or…
Best AI Video Tools 2026

Best AI Video Generators

By: Steven Jones On:
Updated on: November 7, 2026
Our best AI video generators shortlist starts with Google Veo / Flow at 9.1/10 for cinematic scenes and Runway at…
Best AI Image Generators 2026

Best AI Image Tools 2026

By: Steven Jones On:
Updated on: August 24, 2026
Best overall: OpenAI GPT Image 2, with a 9.6/10 score in the current DIY AI image generation dataset. That does…
Steven Jones

Writer: Steven Jones

AI Tools Reviewer and Technical Analyst

Steven Jones is a technology analyst specialising in artificial intelligence, machine learning workflows, and emerging automation tools.

At DIY AI, he focuses on clear, practical guidance for people comparing AI tools in the real world. His work covers text generation, image generation, video tools, data platforms, developer-focused AI products, and the automation workflows that connect them.

Steven's reviews are built around hands-on testing, practical benchmarks, and transparent scoring rather than vendor claims. He looks closely at where each tool performs well, where it falls short, and what those trade-offs mean for creators, teams, and businesses trying to make sensible AI adoption decisions.

He has a particular interest in safety, reliability, output quality, performance metrics, and dataset quality. When he is not reviewing the latest AI model updates, he experiments with prompt engineering techniques and contributes to DIY AI ongoing work on fair, explainable scoring frameworks for AI tools.

Contact

Leave a Comment On: AI Model Rankings 2026 Cost Effectiveness

Your email address will not be published.