Why this matters now

A year ago, the frontier model market had three meaningful options: GPT-4, Claude 3, and Gemini. Today, there are at least eight — spanning five price tiers from $1 to $30 per million output tokens.

The fragmentation is good for builders (more choices, lower prices) but paralyzing without a reference. Should you pay 30x more for Sol than Luna? When does Gemini 3.1 Pro beat Sonnet 5 on value? Is an open-weight model from China competitive with a US frontier lab on agentic coding?

This guide answers those questions with current pricing, published benchmarks, and a decision matrix. All data is sourced and current as of July 6, 2026.


The pricing landscape

ModelInput / 1M tokOutput / 1M tokContextCategory
Claude Opus 4.8$5.00$25.001MFrontier
GPT-5.6 Sol$5.00$30.00128KFrontier
Claude Sonnet 5 (std)$3.00$15.00200KHigh
Claude Sonnet 5 (intro)$2.00$10.00200KPromo
GPT-5.6 Terra$2.50$15.00128KHigh
Gemini 3.1 Pro$2.00$12.002MHigh
Gemini 3.5 Flash$1.50$9.001MMid
Mistral Medium 3.5$1.50$7.50128KMid
Mistral Large 3$2.00$6.00128KMid
GPT-5.6 Luna$1.00$6.00128KBudget
GLM-5.2~$0.73~$2.291MBudget
Kimi K2.7-Code~$0.95~$4.00256KBudget

The gap is 41x from cheapest input (GLM-5.2 at $0.73) to most expensive output (Sol at $30). But raw price per token is misleading — a model that costs 5x more but finishes the task in one attempt instead of three may be cheaper overall.


Key benchmarks

All scores are from official sources unless noted. SWE-bench Pro and Terminal-Bench 2.1 are the most relevant for agentic coding.

ModelSWE-bench ProTerminal-Bench 2.1BrowseCompOSWorld
Claude Opus 4.869.2%74.6%83.4%
Claude Sonnet 563.2%80.4%84.7%81.2%
GPT-5.6 Sol (Ultra)91.9%
GPT-5.6 Sol (base)88.8%
Gemini 3.1 Pro~58%~72%
Mistral Medium 3.5~48%~62%
GLM-5.246.5%59.8%38.1%
Kimi K2.7-Code43.8%56.3%40.2%
  • Opus 4.8 leads on raw SWE-bench but Sonnet 5 beats it on Terminal-Bench 2.1 (agentic terminal use) and costs half as much
  • GPT-5.6 Sol Ultra holds the highest single score (91.9% on Terminal-Bench) but is government-gated and costs $30/M output
  • The open-weight models (GLM-5.2, Kimi K2.7) trail the frontier by 15–25 points on coding benchmarks but cost 5-10x less
  • Gemini 3.1 Pro is competitive with Sonnet 5 on general reasoning but lags on agentic benchmarks

Cost-per-task analysis

Token pricing alone doesn’t tell you what a task actually costs. A coding agent using 50K input + 10K output tokens per iteration, averaging 3 iterations to complete a feature:

ModelCost per featureNotes
Claude Opus 4.8$0.75Fast mode doubles output cost
Claude Sonnet 5 (std)$0.45Best value in the high tier
Claude Sonnet 5 (intro)$0.30Promo pricing won’t last
GPT-5.6 Sol$0.90Most expensive per task
GPT-5.6 Terra$0.45Same per-task as Sonnet 5 std
Gemini 3.1 Pro$0.362M context a differentiator
Gemini 3.5 Flash$0.271M context, fast
Mistral Medium 3.5$0.23Open-weight, self-hostable
GPT-5.6 Luna$0.17Smart budget pick for simple tasks
GLM-5.2$0.08Cheapest by wide margin
Kimi K2.7-Code$0.14Open-weight middle ground

For a team running 500 agentic coding features per month:

  • Opus 4.8: ~$375 — premium but highest autonomous success rate
  • Sonnet 5: ~$225 — the sweet spot for most teams
  • Gemini 3.1 Pro: ~$180 — competitive with Sonnet 5 if your task fits its strength profile
  • Mistral Medium 3.5: ~$115 — open-weight, self-host, no vendor lock-in
  • GLM-5.2: ~$40 — hard to beat on cost, but expect 15-25% higher retry rates

Decision matrix

If you need…Use…Because
Highest autonomous coding success rateClaude Opus 4.8Leads SWE-bench Pro at 69.2%
Best value for agentic codingClaude Sonnet 5Near-Opus quality at half the price; beats Opus on Terminal-Bench
Lowest latency with good qualityGPT-5.6 LunaFastest tier, $1/$6, good for simple agent loops
Long-context reasoning (100K+ tokens)Gemini 3.1 Pro2M context, best in class for document analysis
Open-weight, self-hosted deploymentMistral Medium 3.5 or GLM-5.2Both run on your infra; Mistral has better benchmarks, GLM is cheaper
Government-gated high-effort reasoningGPT-5.6 Sol UltraHighest single benchmark score (91.9%) but restricted
Maximum cost efficiency at scaleGLM-5.2 or Kimi K2.7-Code5-10x cheaper than frontier; good for high-volume, lower-stakes tasks
EU data sovereigntyMistral Medium 3.5 (self-hosted) or Mistral Large 3 (API)French company, Paris data center, sovereign by design

The strategy: route, don’t commit

No single model wins every category. The right approach is a multi-provider gateway that routes tasks to the cheapest adequate model:

  1. Simple Q&A, classification, extraction → Luna / Mistral Medium 3.5 / GLM-5.2 ($0.08–$0.23/task)
  2. Coding with moderate complexity → Sonnet 5 / Terra / Gemini 3.1 Pro ($0.36–$0.45/task)
  3. Hard problems, autonomous multi-step → Opus 4.8 / Sol ($0.75–$0.90/task)
  4. Only when absolutely necessary → Sol Ultra (government-gated, $30/M output)

A team doing 80% of tasks on tier 1-2 and 20% on tier 3 averages ~$0.30/task — less than the cheapest model if they’d committed to a single provider.


What changed in the last month

  • Sonnet 5 launch (Jun 30) collapsed the cost of near-Opus agentic quality — the single biggest pricing event this quarter
  • GPT-5.6 family (Jun 26) introduced three-tier pricing, making OpenAI competitive again on cost with Luna/Terra
  • Mistral Medium 3.5 went open-weight (May 22), giving the self-host market a credible mid-tier option
  • GLM-5.2 (Jun 13) dropped input pricing to $0.73/M via third-party providers, 48% cheaper than at launch
  • Gemini 3.1 Pro (May 19) locked Pro access behind paid API — free tier no longer includes frontier models


Sources


About the author: Charles Jasthyn De La Cueva is an Admin Officer at PSU’s Quality Assurance Office and the builder behind ParSU-EDMS / QAOSYS. He writes about AI tools, infrastructure, and practical agent deployment.