The Cheapest Near-Frontier AI Models in 2026 (Ranked by Cost-Per-Task)

Quick answer. The cheapest near-frontier model in 2026 is DeepSeek V4-Flash at roughly $0.06 per million tokens blended on cache-heavy work — about 36x cheaper on input and 89x cheaper on output than Claude Opus 5. For value (not raw price), rank by cost-per-useful-result: V4-Flash, GPT-5.6 Luna, Qwen 3.7 Flash, Gemini 3.5 Flash, then V4-Pro.

July 2026 changed the question. For two years the debate was "which model is best." Now it's "what can you finally afford to build." A tier of near-frontier models has collapsed in price to the point where the token bill is no longer the thing that kills a project. DeepSeek V4 is the clearest example: near-frontier capability at 10-90x lower cost than the Western flagships.

This is a ranking by blended cost-per-task, not by raw token price. The cheapest per-token model isn't automatically the best value — a model that needs three tries to get the answer right can cost more than a pricier one that nails it first. We lead with cost because that's what unblocks builders in 2026, but we're honest about where the expensive model still earns its keep.

What does "near-frontier" mean here?

Near-frontier models land within a small gap of the absolute best on the benchmarks that matter for real work — coding, agentic tool use, reasoning — while costing a fraction of flagship prices. They're the models where you'd struggle to justify paying 30x more for the last few points of capability on most workloads. The three levers that make this possible are all structural, not marketing:

  • Mixture-of-Experts (MoE). A model can hold trillions of total parameters but only activate a small slice per token. DeepSeek V4-Flash is 284B total but ~13B active; V4-Pro is 1.6T total, 49B active. You pay compute for the active path, not the whole brain.
  • Prompt caching. Re-sending the same system prompt, docs, or codebase context is charged at a fraction of fresh input. DeepSeek's cached input is ~$0.003/M — a 98% discount — which is why the blended rate lands near $0.06 on cache-heavy agent loops.
  • Open weights. V4-Pro (MIT license) and Kimi K3 ship open weights you can self-host. That caps your cost at your own hardware and removes vendor lock-in entirely.

The master pricing table (per 1M tokens)

Every number below is verified list pricing as of August 2026. Blended figures assume a cache-heavy workload; your mix will vary.

ModelInputOutputCached inputTierNotes
DeepSeek V4-Flash$0.14$0.28~$0.003Cost champion284B/13B active, 1M ctx, text-only
GPT-5.6 Luna$0.20$1.20Cost tierCut 80% on Jul 30, 1M ctx
Qwen 3.7 Flash$0.03$0.13Cheapest raw tokensNative vision, 1M ctx (Jul 27)
Gemini 3.5 Flash$0.75$4.50~$0.15Multimodal valueInput dropped from $1.50
DeepSeek V4-Pro$0.435$0.87$0.0036Near-flagship value1.6T/49B active, MIT open weights
Kimi K3$3.00$15.00$0.30Flagship (open)2.8T MoE, native vision, 1M ctx
Claude Sonnet 5workhorse tierFlagship familyCheaper Anthropic tier
Claude Opus 5$5.00$25.00FlagshipLaunched Jul 24
GPT-5.6 Sol$5.00$30.00FlagshipHardest agent workloads
Claude Fable 5$10.00FrontierAnthropic's top tier

How much cheaper is V4-Flash than the flagships?

The multipliers are not incremental — they're order-of-magnitude. Against Claude Opus 5, DeepSeek V4-Flash is 36x cheaper on input ($0.14 vs $5.00) and 89x cheaper on output ($0.28 vs $25.00). Against GPT-5.6 Sol on output it's roughly 107x cheaper. Step up to V4-Pro and you're still ~11x cheaper on input and ~34x cheaper on output than GPT-5.6 Sol, while getting benchmark numbers that sit in flagship territory: LiveCodeBench 93.5, Codeforces Elo 3206, SWE-bench Verified 80.6, GPQA Diamond 90.1.

We've broken down the full flagship-versus-Flash economics in DeepSeek V4-Flash cost vs the frontier — that's the hub if you want the deep cost math for a single model. This page is the ranked roundup across the whole cheap tier.

The ranking, by cost-per-useful-result

1. DeepSeek V4-Flash — the cost champion

At ~$0.06/M blended on cached workloads, nothing near its capability is cheaper to run. Terminal Bench 2.1 of 82.7 and DSBench-FullStack of 68.7 (vendor harness, treat as a ceiling) put it firmly in near-frontier coding territory. The July 31 re-post-training kept the same 284B/13B architecture but reported a significant capability jump. Best fit: high-volume agent loops, code generation, RAG, anything text-heavy where you re-send context constantly.

2. GPT-5.6 Luna — cheapest brand-name option

After OpenAI's July 30 cut (input $1.00 → $0.20, output $6.00 → $1.20), Luna is the cheapest way to stay inside the OpenAI ecosystem with a 1M-token context. Output is still 4x pricier than V4-Flash, but if you're already on OpenAI tooling and want one vendor, this is the value pick.

3. Qwen 3.7 Flash — cheapest raw tokens (and it sees)

At $0.03 input / $0.13 output, Qwen 3.7 Flash (released Jul 27) is the lowest sticker price in the table — and unlike DeepSeek, it has native vision. If your workload is multimodal and price-sensitive, this is the surprise value play. Qwen 3.5 Flash sat at $0.07 / $0.26, so the trend within the family is clearly downward.

4. Gemini 3.5 Flash — multimodal value with Google's stack

At $0.75 / $4.50 (input dropped from $1.50), it's pricier per token than the leaders but buys you Google's multimodal pipeline and caching at ~$0.15. Worth watching: Gemini 3.6 Flash reportedly cuts agent token costs up to 65% on long-horizon tasks, so the effective bill on agentic work can beat the sticker.

5. DeepSeek V4-Pro — near-flagship at a value price

When V4-Flash isn't quite enough, V4-Pro is the step up that still costs a fraction of the flagships. $0.435 / $0.87, MIT-licensed open weights, and permanent pricing since May 22, 2026 (the 75% discount became the standard list price). Roughly 34x cheaper than GPT-5.5, and ~34x cheaper input / 86x cheaper output than Claude Opus 4.7. See the V4-Pro permanent price cut writeup for the details.

What does a real monthly bill look like?

Numbers are cleaner than adjectives. Take a moderate production workload of 50M input tokens + 10M output tokens per month — a busy internal agent or a mid-traffic product feature. Here's the monthly API cost across the field:

ModelMonthly cost (50M in / 10M out)Multiple vs V4-Flash
DeepSeek V4-Flash$9.801x
GPT-5.6 Luna$22.002.2x
DeepSeek V4-Pro$30.453.1x
Gemini 3.5 Flash$82.508.4x
Kimi K3$300.0031x
Claude Opus 5$500.0051x
GPT-5.6 Sol$550.0056x

The spread is the whole story. The same workload is $9.80 on V4-Flash and $550 on GPT-5.6 Sol — a 56x gap. And those V4-Flash figures don't even count caching; on a cache-heavy loop the real bill drops further toward that $0.06 blended rate. For most production text workloads, you are not choosing between "good enough" and "the best" — you're choosing between a $10 bill and a $500 one for output that's close enough that your users won't tell the difference.

When is the cheapest model NOT the right call?

Cost-per-token is the wrong metric if the cheap model can't do the job. Be honest about the ceilings:

  • You need native vision, audio, or video. DeepSeek V4 is text-only. If your workload processes images, screenshots, audio, or video natively, the picture changes — Kimi K3 (native vision), Gemini 3.5 Flash, GPT-5.6, and Claude Opus 5 are your field. Among those, Qwen 3.7 Flash and Gemini 3.5 Flash are the cheap multimodal entries.
  • The hardest long-horizon autonomous agents. When a task runs for hours across dozens of tool calls with no human in the loop, the flagships (Opus 5, GPT-5.6 Sol) still pull ahead on reliability. A single expensive-model run that completes can beat ten cheap runs that stall.
  • Data residency and compliance. DeepSeek's hosted API runs in China, which is a real concern for regulated data. The mitigation is built in: MIT-licensed open weights mean you can self-host V4-Pro on your own infrastructure. Migration is softened by the OpenAI-compatible API — most SDKs work with a base-URL swap.

The rule of thumb: default to the cheapest model that clears your capability bar on a representative eval of your tasks, then only pay up where it measurably fails. Front-end coding is a good example of why the cheap tier keeps surprising people — blind-arena evals put Kimi K3 ahead of leading US models on front-end work, and the open-weight Chinese models keep closing gaps that the price would suggest are wide.

How to actually pick

Run the decision in this order:

  • Text-only, high volume, cost-sensitive? DeepSeek V4-Flash. Start here; it's the default.
  • Need a bit more headroom, still want value + open weights? DeepSeek V4-Pro.
  • Multimodal and price-sensitive? Qwen 3.7 Flash or Gemini 3.5 Flash.
  • Committed to one Western vendor, want cheapest inside it? GPT-5.6 Luna.
  • Hardest autonomous agents, budget available? Opus 5 or GPT-5.6 Sol.

For head-to-head detail, we've got the matchups: Qwen 3.7 vs DeepSeek V4 for coding, Kimi vs DeepSeek V4 vs GLM, and GLM 5.2 vs DeepSeek V4. For the full picture on any single model, the DeepSeek V4 complete guide is the pillar.

The bigger point for teams shipping software

The collapse in inference cost means the model is rarely the bottleneck anymore — execution is. Picking V4-Flash over Opus 5 saves you 50x on the token bill, but it doesn't write the eval harness, wire up the agent loop, or ship the feature. That's engineering. If you're moving fast on AI product work and need people who can turn cheap capable models into shipped software, hire vetted remote developers through Codersera — the goal is to extend your engineering team with people who already know this landscape, so you spend your budget on results, not on relearning the pricing table every three weeks.

FAQ

What is the cheapest near-frontier AI model in 2026?

DeepSeek V4-Flash, at $0.14 input / $0.28 output per million tokens and roughly $0.06 blended on cache-heavy workloads. On raw sticker price alone Qwen 3.7 Flash is lower ($0.03 / $0.13), but V4-Flash leads on cost-per-useful-result for text-heavy coding and agent work.

How much cheaper is DeepSeek V4-Flash than Claude Opus 5?

About 36x cheaper on input ($0.14 vs $5.00) and 89x cheaper on output ($0.28 vs $25.00). On a 50M-input / 10M-output monthly workload, that's $9.80 versus $500 — a 51x difference for the same volume.

Is the cheapest model always the best value?

No. Value is cost-per-useful-result, not cost-per-token. A cheap model that needs multiple retries or can't handle images can cost more in practice than a pricier one that succeeds first time. Default to the cheapest model that clears your capability bar on your own tasks, then pay up only where it measurably fails.

Can DeepSeek V4 handle images or audio?

No — DeepSeek V4 is text-only. For native vision, audio, or video, look at Kimi K3 (native vision), Gemini 3.5 Flash, GPT-5.6, or Claude Opus 5. Among the cheap tier, Qwen 3.7 Flash and Gemini 3.5 Flash are the affordable multimodal options.

Is it safe to use DeepSeek's API for sensitive data?

DeepSeek's hosted API runs in China, which is a data-residency and compliance concern for regulated workloads. Because V4-Pro ships MIT-licensed open weights, you can self-host it on your own infrastructure to keep data in-region, and the OpenAI-compatible API makes migration low-effort.