Which model is cheapest for coding this month
Cheapest is a calculation, not an opinion, so here is the calculation and the table it produces: the ten lowest rates for a coding-sized prompt — 8,000 tokens in, 1,500 out — across the 245 models and 40 suppliers in the catalogue this site publishes. Every figure is read from pages/assets/models/model-selection.json, whose own timestamp is 2026-11-21 11:20 +10:00.
One honest note before the table. A page that says "this month" and never moves is the fastest way to lose a reader's trust, so this page quotes the catalogue's date rather than a claim about freshness, and it names the file the numbers came from so you can check them yourself. No price on this page is typed by hand.
The ten cheapest, for a 128,000-token window or better
Ordered by the cost of 1,000 runs of an 8,000-token prompt with a 1,500-token answer, which is 8 × input price + 1.5 × output price in dollars. Rows below a 128,000-token window are excluded on the grounds that a coding session spends tokens on files, and a small window is a false economy: the prompt gets truncated before the price advantage is collected.
| # | Model | Supplier | Window | USD / 1M in | USD / 1M out | USD / 1,000 runs |
|---|---|---|---|---|---|---|
| 1 | Amazon Nova Micro | Amazon | 128,000 | 0.035 | 0.14 | 0.49 |
| 2 | Hy4-Flash | Tencent | 1,048,576 | 0.035 | 0.1405 | 0.49 |
| 3 | Llama 3.1 8B Instant (Groq) | Groq | 131,072 | 0.05 | 0.08 | 0.52 |
| 4 | Command R7B | Cohere | 128,000 | 0.0375 | 0.15 | 0.53 |
| 5 | Qwen Turbo | Alibaba (Qwen) | 131,072 | 0.05 | 0.2 | 0.70 |
| 6 | Granite 4.2 8B | IBM | 131,072 | 0.06 | 0.15 | 0.71 |
| 7 | Amazon Nova Lite | Amazon | 300,000 | 0.06 | 0.24 | 0.84 |
| 8 | GLM-4.6V-FlashX | Z.AI (Zhipu) | 131,072 | 0.04 | 0.4 | 0.92 |
| 9 | LFM3-1.7B | Liquid AI | 128,000 | 0.08 | 0.2 | 0.94 |
| 10 | Ministral 3B | Mistral AI | 262,144 | 0.1 | 0.1 | 0.95 |
The first two rows tie at a rate that rounds to the same cent, and the gap between row one and row ten is under a dollar per thousand runs. At this end of the table the price difference is not the decision: any of the ten is cheap enough that the choice should be made on whether the model can do the work.
The same 1,000 runs on four larger models
For scale, the same prompt on four models that appear further up the catalogue. The point of this table is not that one is better — a model's own price says nothing about its output — but that the spread is three orders of magnitude, which is the largest single lever in the cost of using any of them.
| Model | Supplier | Window | USD / 1M in | USD / 1M out | USD / 1,000 runs |
|---|---|---|---|---|---|
| Kimi K3.1 Pro | Moonshot AI | 1,048,576 | 2.00 | 10.00 | 31.00 |
| GPT-5.5 | OpenAI | 1,050,000 | 5.00 | 30.00 | 85.00 |
| Claude Fable 5.2 | Anthropic | 1,000,000 | 8.00 | 40.00 | 124.00 |
| GPT-5.5 Pro | OpenAI | 1,050,000 | 30.00 | 180.00 | 510.00 |
A team running 800 prompts a month pays about USD 0.39 on the cheapest row above and about USD 408 on the dearest, for the same 800 prompts. Which of those is the right bill depends on what the answers are worth, and that is a question a price table cannot answer.
Cheap is not the same as adequate: three checks
- Does the window fit the work? A 128,000-token window holds a 2,300-token system prompt, six files and eight turns with room to spare — about 18,700 tokens before the answer, if you count the way the budget page does. A 32,000-token window holds the same session at 58% and truncates on the first follow-up.
- Is output or input the cost? At 8,000 in and 1,500 out, a model whose output rate is ten times its input rate is dominated by the answer. If your runs produce long answers, weight the output column; if they produce one-line patches, the input column matters more than the headline rate suggests.
- Does it pass your own test? Take ten prompts you have already run, run them again on the candidate, and check the outputs against the checks in the prompt. That is a half-hour experiment, and it is worth more than any ranking, including this one.
Why the cheapest row changes, and why that is fine
List prices move for reasons that have nothing to do with quality: a new model displaces an old one, a supplier adds a batch tier, a promotional rate ends. A page that froze a table in 2024 and still calls it "this month" is worse than no page, because it is confidently wrong. The catalogue this site publishes carries its own timestamp, the per-model pages at /model-limits are generated from the same file, and /news records the changes when they land.
Running a model on your own machine takes the per-token rate out of the question altogether; the two settings that then decide the session are in the Ollama and LM Studio guide.
So use the table as a shortlist rather than a verdict: three models that are cheap enough, then the three checks above, then keep the one that passed. The arithmetic for any other prompt size is on the calculator page, and the lesson that frames the whole question is model selection for coding.
Related guides
Part of the guides index. Two that follow this one: Token and cost calculator for 245 models and Ollama and LM Studio system prompt settings.
Cite this page as: TPEE, the Toptronic® Prompt Engineering Editor — https://tpee.app/guides/cheapest-model-for-coding-this-month. Ask: support@tpee.app.