AI models

A model is the engine; the agent around it is the harness. The same weights can be cheap or expensive, fast or slow, private or not, depending on who serves them and what you send. This page is about the models themselves: what the numbers mean, what the tiers cost, and how to pick one. Wiring a model into a coding agent is a separate job: OpenCode covers ids, pinning and per-agent routing on Models in OpenCode.

Three numbers that decide

Price tiers

Orientation prices per 1M tokens, input and output, as seen on OpenCode Console, which is a convenient public price list. Other providers are in the same range:

TierExamplesPrice / 1M in+outUse it for
Freerotating Console free models$0Public code, drafts, questions, learning a codebase
CheapGPT 5 Nano, Haiku 5.5, GPT 6 Luna$0.05–0.10 / $0.40–0.50Routine edits, CI jobs, long sessions
MidDeepSeek V4.1 Flash, Kimi K2.5, Muse Spark 1.3, Sonnet 5.5, GPT 6 Sol$0.30–2.00 / $1.20–10.00Quality per dollar, harder features
TopClaude Opus 5.5, GPT 5.5$4.00–5.00 / $20.00–30.00Architecture, hard bugs, security review, final pass

Verify current prices before budgeting: rates move, and every quoted number here is orientation only. The rule that saves the most money is not picking a cheap model — it is matching the tier to the step. Most steps are drafts and routine edits; only the last one decides quality.

Free, paid or local

There are three ways to get a model, and they differ in who pays and who can read your prompts:

How to choose

Models covered here

From model to agent

Choosing the model is half the job. The other half is the harness: which model answers, which one edits, which one reviews, and what each of them is allowed to touch. Models in OpenCode covers ids and variants, pinning a default, per-agent routing, switching mid-session and cost control. The tool-agnostic side is on Creating and developing agents, and the procedures they load are skills.