Coding models, ranked

Writing code is not a one-shot prompt. A model needs room for several files at once, tool calling to reach your build and your tests, and structured output so a patch comes back as a patch. Everything below has all three and fits at least 64k tokens of context.

Most used in this category

Each model's share of this category's usage over the last 30 days, and its output price per 1M tokens in toman.

  1. 1Gemini 3.8 Flash50% share1,298,323 toman
  2. 2Gemini 2.5 Flash Lite29% share138,488 toman
  3. 3Gemini 3.1 Flash Lite5.6% share519,329 toman
  4. 4Claude Sonnet 54.6% share3,462,194 toman
  5. 5Gemini 2.5 Flash4.1% share865,548 toman

Best value in this category

Score out of 100: 50% cheapness, 30% capabilities, 20% context size — not a quality benchmark.

#ModelContext (tokens)≈ 1,000 words (toman)Score
11GLM Flash LatestContext (tokens)1,048,576≈ 1,000 words (toman)54Score87.7
22Qwen3.7 FlashContext (tokens)1,000,000≈ 1,000 words (toman)72Score84.4
33GPT-6 Luna Pro (batch)Context (tokens)1,050,000≈ 1,000 words (toman)135Score83.8
44GPT-6 Luna (batch)Context (tokens)1,050,000≈ 1,000 words (toman)135Score83.8
55Claude Haiku 5.5 (batch)Context (tokens)1,000,000≈ 1,000 words (toman)135Score83.6
66GPT-5 Nano (batch)Context (tokens)400,000≈ 1,000 words (toman)101Score83.6
77Ling 3.0 TinyContext (tokens)262,144≈ 1,000 words (toman)27Score82.4
88Ling 3.0 FlashContext (tokens)262,144≈ 1,000 words (toman)38Score80.7
99GLM 5.3 Flash (batch)Context (tokens)1,048,576≈ 1,000 words (toman)104Score80.6
1010Gemma 4 26B A4BContext (tokens)262,144≈ 1,000 words (toman)67Score80.6
1111Gemini 2.5 Flash LiteContext (tokens)1,048,576≈ 1,000 words (toman)225Score78.2
1212Qwen3.5-FlashContext (tokens)1,000,000≈ 1,000 words (toman)146Score76.8
1313Ternary Bonsai 2 9BContext (tokens)262,144≈ 1,000 words (toman)95Score76.8
1414GPT-6 LunaContext (tokens)1,050,000≈ 1,000 words (toman)270Score76.3
1515GPT-6 Luna ProContext (tokens)1,050,000≈ 1,000 words (toman)270Score76.3

Full list of models that hold up in a real codebase with prices →