Skip to content
Stefan Manja
← Selected writing

Frontier pricing isn't your problem — 5 cost-competitive models, ranked

Frontier pricing isn't your problem. Mismatched tasks are. In June 2026, five cost-competitive models cost 3x to 45x less, with workload fit deciding the choice.

Updated

mismatchedto your workload.AA Intelligence Index v4.1 — see methodology below

Operational cost visibility — log per-query cost, catch the p99 tail, build the eval — is one half of cost discipline. The other half: which model, which format, which architecture.

The thesis: tasks that don’t need frontier reasoning should use the cheapest model that meets the capability bar. In June 2026, the five cost-competitive models below cost 3x to 45x less than GPT-5.5 or Claude Opus 4.8. Long-horizon agentic, frontier reasoning and multimodal tasks may still require the leading proprietary models.

The model roster

The model roster — capability composite, not single-number ranking

The capability composite is from AA Intelligence Index v4.1 (2026-06-18). The cost column is per-vendor verified 2026-06-17, with MiMo-V2.5-Pro the exception (AA blended pricing was the only public source). Model availability, licenses, tools and prices throughout are a June 2026 snapshot. Order is by AA Index. The two at 44 are listed by recency + agentic-strength: MiniMax M3 first as the 2026 forward-looking model, then DeepSeek V4-Pro as the cost leader (named separately in the result note).

ModelAA Index$ in / out per 1M tokContextLicense
GLM 5.251$1.40 / $4.401MMIT (BIS-restricted for US persons; cloud-provider paths only)
MiniMax M344$0.30 / $1.20 (standard ≤512k)1MRestrictive community license; commercial use requires first-party API
DeepSeek V4-Pro44$0.435 / $0.8701MMIT
Kimi K2.643$0.95 / $4.00 (cache-miss)256KModified-MIT (>100M MAU or $20M monthly rev needs authorization)
MiMo-V2.5-Pro42$0.18 (blended)1MOpen weights (Xiaomi, June 2026)

The cheapest model is not the most capable model, and the most capable is not the cheapest. The decision rule is: pick by workload, not by index number.

Format: the smallest lever

Prompt format gets discussed more than it delivers. In a 30-trial comparison with JSON on gpt-5-mini at high reasoning effort, TOON (Token-Oriented Object Notation) and GCF (Graph Compact Format) cut prompt tokens 45-48%. The best-case end-to-end cost saving was smaller: 11.9%. Other workloads may differ.

FORMAT · PROMPT vs END-TO-END Two horizontal bars titled FORMAT · PROMPT vs END-TO-END: 45–48% PROMPT SAVING; 11.9% END-TO-END SAVING (best case). FORMAT · PROMPT vs END-TO-END PROMPT SAVING 45–48% END-TO-END SAVING (best case) 11.9%
Compared with JSON, TOON and GCF saved 45 to 48 percent of prompt tokens, but only 11.9 percent of end-to-end cost in the best case. The gap is reasoning tokens, priced as output (8x the input rate for gpt-5-mini).

The gap between prompt-token saving and end-to-end saving is reasoning tokens. The 45-48% prompt saving assumes the model still produces the same number of output tokens, including any chain-of-thought. On reasoning-heavy workloads, the prompt saving is partially offset by the reasoning cost. Reasoning tokens were priced as output (8x the input rate for gpt-5-mini), and the model spent extra reasoning parsing the unfamiliar TOON/GCF section header and delimiter.

Format can save input tokens while making a smaller difference to the total bill. The 11.9% is a snapshot for gpt-5-mini high; other models may differ. Compare total cost and answer quality on the same workload before changing format.

Four architectural levers

Architecture — four levers that compound

Four architecture levers, applied together, decide whether the system holds up at 1K+ queries/day.

Four architecture levers
Lever · 11M contextStandard for 4 of 5 cost-competitive models (Kimi K2.6 at 256K). Lever for single-document ingest; RAG is the lever for cross-document scale. The two are complementary, not substitutes.
Lever · 2Hybrid retrieval + cross-encoder rerankDense alone misses exact-phrase + code-symbol; keyword alone misses semantic paraphrase. A default in June 2026, not a research project. 49-67% retrieval-failure reduction per Anthropic (Sep 2024).
Lever · 3Prompt cachingIn June 2026, cache hits cost 0.1x the cache-miss input price. Anthropic, OpenAI, DeepSeek, Moonshot and Z.ai offered caching. Self-host: vLLM APC, SGLang RadixAttention.
Lever · 4Route by query difficulty2-10x blend-cost reduction by routing queries to the cheapest model that meets the bar. vLLM Semantic Router v0.3.0, OpenRouter, LiteLLM. FrugalGPT, RouteLLM.

All 4 levers apply together; order is not prescribed.

The four levers compound. 1M context lets you fit more; hybrid + rerank makes what you fit more relevant; prompt caching makes the repeated parts cheaper; routing matches the right model to the right task.

Operational sub-levers

Two patterns that operate on conversations (not single queries) or on vendor-managed infrastructure (not user code). Both are cheap to enable, both have sharp failure modes.

Summarize + tier

For multi-turn workflows, conversation history grows. The naive approach sends the full transcript on every call. A two-step pattern shortens it: a cheap model (gpt-5.4-mini or haiku 4.5) keeps a rolling summary of the older turns, the summary is prepended to the strong model’s context, and the last 2 turns are kept verbatim for short-term coherence. The OpenAI cookbook pattern (context_summarization_with_realtime_api, May 2025) is the reference implementation; the cascade structure follows FrugalGPT (Chen et al., 2023).

Whether it saves money depends on prompt caching. A worked example at list prices from early July 2026, with gpt-5.5 answering and gpt-5.4-mini writing the summaries, a 1,500-token system prompt, 200-token user messages and 500-token replies:

Conversation lengthSaving with no cache hitsSaving with cache hits (after the first turn)
10 turns17%−25% (costs more)
20 turns40%−22% (costs more)
40 turns62%−8% (costs more)
60 turns72.5%4%

Without cache hits, the saving grows with the length of the conversation. With cache hits, the full transcript is mostly a cached prefix billed at a tenth of the input price, while a summary that changes every turn breaks that prefix and pays full price again. In this example the summary breaks even only at about 54 turns. For ordinary conversations of a few turns, check whether caching already does the job before adding a summarizer.

Failure modes:

  • Lost in the middle. The summary may drop a key detail from turn 5.
  • Reference failure. The user says “what did you say about X?” — turn 5 is no longer in the context.
  • Summary cost compounds. The summary is rewritten whenever a turn leaves the verbatim window. Cheap model or not, the cost adds up.
  • Hallucination. The cheap model invents a fact the user never said.

Use when: long agentic loops, multi-turn research workflows, conversational RAG with follow-up questions. Don’t use when: single-turn queries, retrieval-heavy workflows where the answer is in the retrieved documents.

Server-side compaction

In June 2026, OpenAI’s /responses/compact endpoint auto-pruned old context when the conversation crossed a threshold. The vendor returned an encrypted opaque compaction item that replaced the old turns; the developer never saw the raw text. Zero Data Retention-friendly when store=false — OpenAI did not persist the compacted context. For previous_response_id chaining, pass only the new user message each turn; the compaction happens server-side. For stateless input-array chaining, append output items (including compaction items) on each turn; drop items before the latest compaction to control latency.

No equivalent on Anthropic, DeepSeek, Moonshot, or Z.ai as of 2026-06-20. Vendor-specific infrastructure — useful for OpenAI customers, irrelevant elsewhere.

Use when: OpenAI is the strong model, conversation history is volatile, ZDR compliance is required. Don’t use when: cross-vendor flexibility matters, you need to audit the compacted context yourself.

The two sub-levers sit on top of the per-query levers in §3 (1M context, hybrid + rerank, prompt caching, route by difficulty). They do not always add up: a rolling summary breaks the cached prefix, as the worked example above shows.

The pattern

Four categories of cost discipline. The first is operational: log per-query cost, catch the p99 tail, build the eval. The second is model: pick the cheapest model that meets the capability bar, ordered by AA Index, deployed on cloud-provider paths for data governance. The third is architecture: 1M context + hybrid + rerank + prompt caching + routing by query difficulty, in that order. The fourth is operational sub-levers: summarize + tier for multi-turn conversations, server-side compaction for OpenAI customers.

Cost discipline means using as much AI as the workload justifies. The model is rarely the part that decides whether the system ships. The procurement, the architecture and the operational discipline are.

Pick the model that fits the task, not the model with the highest marketing budget.


Methodology note

  • 5 cost-competitive models evaluated against frontier proprietary. The “open-weight” framing applies to 4 of 5 (GLM 5.2, DeepSeek V4-Pro, Kimi K2.6, MiMo-V2.5-Pro); MiniMax M3 uses a restrictive minimax-community license, not an OSI-approved open-source license.
  • Capability ranking: AA Intelligence Index v4.1 (artificialanalysis.ai, 2026-06-18) — a weighted composite of nine benchmarks per AA v4.1 methodology: GDPval-AA v2, τ³-Bench Banking, Terminal-Bench 2.1, SciCode, AA-LCR, AA-Omniscience, Humanity’s Last Exam, GPQA Diamond, and CritPt. Ranks the 5 cost-competitive models in this deck; cost-per-task measurements come from the AA cost-per-task panel (DeepSeek V4-Pro at $0.04/task, Claude Opus 4.8 at $1.78/task — 44x gap, the 40-45x figure in the result note).
  • Cost data: verified 2026-06-17 from each vendor’s official pricing page, with the exception of MiMo-V2.5-Pro where AA blended pricing ($0.18/M tokens) is the only public source.
  • 49-67% retrieval-failure reduction: Anthropic’s “Contextual Retrieval” announcement (Sep 2024) — hybrid 49%, +rerank 67%.
  • 0.1x cache-hit pricing: standard Anthropic prompt-caching tier (8x the cache-miss input rate).
  • 40-45x DeepSeek cost ratio: from Artificial Analysis’s Intelligence Index v4.1 cost-per-task measurements.
  • 11.9% end-to-end format saving: best case from a 30-trial comparison of JSON, TOON and GCF on gpt-5-mini with reasoning effort high.
  • Summarize + tier worked example: a calculation, not a measurement. Prices: OpenAI standard short-context rates per 1M tokens on the pricing page as archived on 4 July 2026: gpt-5.5 $5.00 input, $0.50 cached input, $30.00 output; gpt-5.4-mini $0.75, $0.075, $4.50. Assumptions: 1,500-token system prompt, 200-token user messages, 500-token replies; a 400-token rolling summary rewritten by the cheap model from a 200-token instruction, the previous summary and the turn leaving the window; last 2 turns verbatim; with cache hits, from the second turn on, the part of the prompt unchanged since the previous turn is billed as cached input (the whole earlier transcript without a summary; only the system prompt once the summary changes), counted from 1,024 tokens in 128-token steps; the no-cache-hit column assumes the cache never matches. With 1,000-token replies the 10-turn savings are 20% with no cache hits and −16% with them; break-even with cache hits is at about 54 turns for 500-token replies. Reasoning tokens, summary quality and cache expiry timing are not modelled. The pattern combines conversation summarization (OpenAI cookbook, context_summarization_with_realtime_api, May 2025) with a cheap-model cascade (FrugalGPT, Chen et al. 2023).
  • Server-side compaction: OpenAI-specific (/responses/compact, platform.openai.com/docs); no equivalent on Anthropic, DeepSeek, Moonshot, or Z.ai as of 2026-06-20.
  • Models referenced throughout: GLM 5.2, MiniMax M3, DeepSeek V4-Pro, Kimi K2.6, MiMo-V2.5-Pro — ranked by AA Intelligence Index v4.1, see artificialanalysis.ai/methodology.

Updated 12 November 2026: removed unsupported first-person claims, the 80/20 split and a chunking anecdote; replaced an uncalculated summarize + tier saving with a worked calculation; limited the format comparison details. Market data remain as of June 2026.

Related: The knowledge-gap list stayed empty. Fixing it was the easy part.

Workflow review

Discuss your workflow

If you have a similar internal AI workflow to build or harden, I can review the workflow shape. A short note on the workflow, users, current stage, and constraints is usually enough to tell whether build or advisory work makes sense.