# Which model should you use in OpenCode?

One coding session can cost five cents or nearly ten dollars. The model you pick decides most of it.

Published December 4, 2026 by Outrun.

**Short answer:** In OpenCode, the model you pick sets most of the bill. One 50-turn session with 80,000 tokens of context costs about $9.52 on Claude Opus 5.5 and about $0.36 on Claude Haiku 5.5 on outrun.to, before caching, as of December 3, 2026. With most of the context cached, the same session costs about $1.01 and $0.05. Start on a cheaper model and switch with `/models` when a task needs more.

Disclosure: Outrun sells API access to every model in this post.

## One session, six models

Assumptions: 50 turns, 80,000 tokens of context resent each turn (4,000,000 input tokens), and 1,000 output tokens per turn (50,000 output tokens).

| Model | Input / output per 1M | Session, no cache | Session, mostly cached |
| --- | --- | --- | --- |
| Claude Opus 5.5 | $2.24 / $11.20 | about $9.52 | about $1.01 |
| Claude Sonnet 5.5 | $0.49 / $2.45 | about $2.08 | about $0.22 |
| Gemini 3.8 Flash | $0.32 / $1.58 | about $1.34 | about $0.20 |
| DeepSeek V4.1 Flash | $0.30 / $1.20 | about $1.26 | about $0.08 |
| GPT-6.1 Sol | $0.12 / $0.59 | about $0.50 | about $0.05 |
| Claude Haiku 5.5 | $0.09 / $0.42 | about $0.36 | about $0.05 |

Prices on outrun.to as of December 3, 2026. Rates are shown rounded up to the cent; billing uses the exact rate. Session totals use the exact rates.

Input is most of the cost. The agent resends the whole conversation on every turn, so a long session costs more per turn as it grows. [Why long agent sessions cost more](https://outrun.to/blog/save-money-on-ai-agent-context) explains caching and when to start fresh.

## How to choose

- Use a cheap model for reading code, small edits and tests.

- Switch to Opus or Sonnet for a hard bug or a large refactor, then switch back.

- Switching models resets the cache, so switch between tasks, not in the middle of one.

- Check Activity in your dashboard after a day to see which sessions cost the most.

Quality differs by task, so try two or three models on your own repo before settling on one.

## Abliterated models in OpenCode

Coding harnesses send their own base prompt with every request, and that prompt can tell a model to decline. OpenCode sends one too, but it lets you replace it: a custom agent's `system` setting takes the place of the built-in prompt for that agent. Your project instructions are still added. Give that agent an abliterated model such as `glm-5.3-abliterated` ($2.00 in / $2.00 out per 1M). If it still refuses, [why coding harnesses refuse abliterated models](https://outrun.to/blog/why-harnesses-refuse-abliterated-models) covers the other causes.

Abliterated models reduce refusals; replies can still vary. They are for adults, and Outrun's Terms apply to every request.

## Set it up

OpenCode adds Outrun as a custom provider in `opencode.json`. The [OpenCode setup guide](https://outrun.to/docs/setup/opencode) has the file and a template with every text model. Every model is on the [pricing page](https://outrun.to/pricing). To start, [get an API key](https://outrun.to/key).
