OpenCode Models Comparison

1 July 2026 | Eric

The goal of this article is to answer the question: “Which model should I use for best cost-efficiency?”. The reality of today’s AI landscape which we already explored is that some models are only good because they are highly subsidized behind opaque subscriptions. But for you and me using token-based harnesses, like OpenCode, there are real decisions to be made. Below is a simple heuristic to make these decisions.

Choosing a Model for a Task

Calculating model efficiency is difficult. There are many parameters, like difficulty of the task, token-efficiency, token cost, caching rate, providers, etc. In the model below, I avoided collapsing cost and capability into a single lossy index, instead the practical approach is a filter-then-rank decision procedure:

  1. Threshold: Set minimum capability needed for the task.
  2. Filter: Filter-out under-qualified models.
  3. Rank: Sort by Effective Cost ascending; ties broken by Intelligence Index, then Coding Index, then Agentic Index (higher is better).
  4. Pick: Cheapest model is our best value.

What is Effective Cost?

Effective Cost is a blended per-million-token rate assuming a default 80% cache hit rate and a 3:1 input:output token ratio (75% input, 25% output). Formula: 0.75 × (0.20 × Input + 0.80 × Cached Read) + 0.25 × Output. Cache write pricing is excluded as it’s a one-time cost per unique prompt prefix, not a per-request cost.

Provider: OpenCode Zen pricing as of July 2026. Index scores sourced from Artificial Analysis Intelligence Index v4.1, Coding Index, and Agentic Index.

AA Cost Ratio is the model’s total cost to evaluate on the AA Intelligence Index ÷ Claude Opus 4.8’s total cost ($3,752.55). Lower is better. Baseline (Claude Opus 4.8) set to 1.000.

Free models are excluded. Some models like Gemini 3.1 and GPT 5.x have similar scores disregarding the context window tier.

Use the sliders below to set minimum Intelligence, Coding, and Agentic scores. The table updates instantly and ranks surviving models by Effective Cost ascending, with ties broken by Intelligence, then Coding, then Agentic index (higher is better).

Loading models…

How to calibrate your own threshold

But before you do that, read below about Cost Staircase & Capability Tiers.

Task typePrimary indexTypical threshold
Simple classification, keyword extractionIntelligence30–35
Structured data extraction, summarizationIntelligence35–40
RAG response generation, Q&AIntelligence40–50
Complex reasoning, deal analysis, proposalsIntelligence50–55
Top-tier research, ambiguous problem-solvingIntelligence55+
Simple codegen (boilerplate, scripts, auto-completion, inline assist)Coding45–55
Feature-level codegen, bug fixingCoding55–65
Complex codegen (multi-file, architecture)Coding65+
Tool-calling, single-step agentsAgentic25–35
Multi-step agents, error recoveryAgentic35–45
Autonomous long-running agentsAgentic45+

Some observations

GPT 5.6 Luna

On July 30, 2026, OpenAI cut GPT 5.6 Luna pricing by about 80% and GPT 5.6 Terra by about 20%. That single price move rewrote the middle of the table.

Luna (≤ 272K) now sits at an Effective Cost of $0.34 per million blended tokens. Against models with near-parity Coding and Agentic scores:

MiniMax M3, Kimi K2.7 Code, and GLM 5.2 were the natural mid-tier picks a week ago. Luna undercuts all three on Effective Cost while clearing their Coding and Agentic bars in one step. Grok 4.5 and Sonnet 5 still edge Luna on Intelligence, but the premium is hard to justify when the capability delta is a few index points.

Claude Sonnet 5

Claude Sonnet 5 remains expensive on another axis: it consumed more tokens than any other model on the AA benchmark, which pushed its AA Cost Ratio to 1.6. It is even more expensive than Claude Fable 5 on that measure while being less efficient. I don’t really know yet how to justify this. Maybe it is optimized for the Anthropic toolchain only. After the Luna cut, the gap is even harder to ignore.

Cost Staircase & Capability Tiers

What we’re seeing is a cost staircase. The table looks like two dozen individual models, but it is really a handful of capability tiers with large price steps between them. The jumps happen at specific coding thresholds where the cheap model falls off. Those thresholds are where model selection matters.

After the Luna cut, the middle rungs disappeared. MiniMax M3, Kimi K2.7, and GLM 5.2 no longer define steps on the coding path. Luna spans what used to be three tiers.

Coding thresholdCheapest survivorCostJump from previous
< 57DeepSeek V4 Flash$0.11— (baseline)
57–71GPT 5.6 Luna (≤ 272K)$0.343.2×
72Grok 4.5 (≤ 200K)$2.106.1×
73–76GPT 5.6 Terra (≤ 272K)$3.421.6×
≥ 77Claude Opus 5$7.302.1×

The intelligence path shows the same pattern, with smaller score gaps and large cost jumps:

A single intelligence point past Luna still costs you about more per token. That is the cliff that matters now.

Changelog