Enterprise DNAEnterprise DNA
← Back to the Model Guide

Cheapest model / job

Coding: the cheapest models

Write, review and refactor code.

How this page ranks

  • Ranked by blended price per million tokens: three parts input to one part output, at the OpenRouter list price for the model. Lowest first. Ties go to the lower input price.
  • A model counts for this job when its taxonomy v2 classification names coding, or its old category maps to it.
  • Each model must list text output on OpenRouter or on its own record.
  • Prices and scores come from the market tables only, each with the day it is for. The price on a model's own record is not used.
  • Missing data never ranks. A model with no confirmed price in the last 30 days, a price in another unit, a $0 listing or unknown inputs and outputs is listed apart, with the reason.

Market data as of 10 Nov 2026. Prices: OpenRouter models API (official).

Ranked: 328 of 988 models

Best for coding →
#ModelInput / 1MOutput / 1MBlended / 1MPrice date
1Meta logoLlama 3.1 8B InstructMeta$0.020$0.040$0.02510 Nov 2026
2Meta logoLlama 3.1 8B InstructWorkers Ai$0.020$0.040$0.02510 Nov 2026
3Meta logoLlama 3.1 8B Instruct AWQWorkers Ai$0.020$0.040$0.02510 Nov 2026
4Meta logoLlama 3.1 8B Instruct fp8Cf$0.020$0.040$0.02510 Nov 2026
5Mistral logoMistral NemoMistral$0.029$0.030$0.02910 Nov 2026
6ILing 3.0 FlashInclusionai$0.021$0.063$0.03210 Nov 2026
7Cloudflare logoGranite 4.0 H MicroCf$0.017$0.112$0.04125 Oct 2026
8IGranite 4.0 MicroIbm Granite$0.017$0.112$0.04125 Oct 2026
9NNex-N2.5-MiniNex Agi$0.025$0.100$0.04410 Nov 2026
10Z.ai (Zhipu) logoGLM 5.3 FlashZ Ai$0.040$0.078$0.05010 Nov 2026
11OpenAI logoGPT OSS 20BAccounts$0.030$0.130$0.05510 Nov 2026
12OpenAI logoGPT OSS 20BCf$0.030$0.130$0.05510 Nov 2026
13OpenAI logoGPT-OSS 20B TEETee$0.030$0.130$0.05510 Nov 2026
14OpenAI logogpt-oss-20bOpenAI$0.030$0.130$0.05510 Nov 2026
15Qwen logoQwen3.7 FlashQwen$0.030$0.130$0.05510 Nov 2026
16Mistral logoMistral Small 3Mistral$0.050$0.080$0.05810 Nov 2026
17Google logoGemma 3 4BGoogle$0.050$0.100$0.06310 Nov 2026
18Cohere logoCommand R7B (12-2024)Cohere$0.037$0.150$0.06610 Nov 2026
19IMercury 2.5Inception$0.040$0.150$0.0686 Nov 2026
20ILing 3.1 FlashInclusionai$0.045$0.135$0.06810 Nov 2026
21Meta logoLlama 3.2 1B InstructCf$0.027$0.201$0.07110 Nov 2026
22PLaguna XS 2.1Poolside$0.060$0.120$0.07529 Oct 2026
23Google logoGemma 3 12BGoogle$0.050$0.150$0.07510 Nov 2026
24Google logoGemma 3 12B ITWorkers Ai$0.050$0.150$0.07510 Nov 2026
25Google logoGemma 4 26B A4BGoogle$0.080$0.100$0.08510 Nov 2026

Showing the top 25 of 328 ranked models.

Not ranked, and why (660)

No confirmed price in the market tables in the last 30 days 658

And 538 more.

Priced per image, song or other unit, not per token 2

Automated from dated market data, not Enterprise DNA tested picks. Check the price and terms with the provider before you commit. Methodology: how the model numbers work.