Enterprise DNA
Directories / Models / Cheapest Coding

Cheapest models for coding

Ranked by input $/Mtoken, then output. Strong code generation and agent coding loops.

  1. 1
    Mistral Small 3.2 24B

    Mistral · 128,000 context

    Input

    $0.075/M

    Output

    $0.200/M

  2. 2
    DeepSeek V4 Flash

    DeepSeek · 1,048,576 context

    Input

    $0.090/M

    Output

    $0.180/M

  3. 3
    Llama 4 Scout

    Meta · 10,000,000 context

    Input

    $0.100/M

    Output

    $0.300/M

  4. 4
    Llama 4 Maverick

    Meta · 1,048,576 context

    Input

    $0.150/M

    Output

    $0.600/M

  5. 5
    GPT-4o-mini

    OpenAI · 128,000 context

    Input

    $0.150/M

    Output

    $0.600/M

  6. 6
    GPT-5.4 Nano

    OpenAI · 400,000 context

    Input

    $0.200/M

    Output

    $1.25/M

  7. 7
    DeepSeek V3

    DeepSeek · 131,072 context

    Input

    $0.200/M

    Output

    $0.800/M

  8. 8
    Qwen3 Coder 480B A35B

    Qwen · 1,048,576 context

    Input

    $0.220/M

    Output

    $1.80/M

  9. 9
    DeepSeek V3.2

    DeepSeek · 131,072 context

    Input

    $0.229/M

    Output

    $0.343/M

  10. 10
    MiniMax M3

    Minimax · 1,048,576 context

    Input

    $0.300/M

    Output

    $1.20/M

  11. 11
    Qwen3.7 Plus

    Qwen · 1,000,000 context

    Input

    $0.320/M

    Output

    $1.28/M

  12. 12
    DeepSeek V4 Pro

    DeepSeek · 1,048,576 context

    Input

    $0.435/M

    Output

    $0.870/M

  13. 13
    MiMo-V2.5-Pro

    Xiaomi · 1,048,576 context

    Input

    $0.435/M

    Output

    $0.870/M

  14. 14
    GLM 5.2

    Z Ai · 1,048,576 context

    Input

    $0.540/M

    Output

    $1.76/M

  15. 15
    Kimi K2.6

    Moonshotai · 262,144 context

    Input

    $0.660/M

    Output

    $3.41/M

  16. 16
    R1

    DeepSeek · 163,840 context

    Input

    $0.700/M

    Output

    $2.50/M

  17. 17
    Kimi K2.7 Code

    Moonshotai · 262,144 context

    Input

    $0.720/M

    Output

    $3.49/M

  18. 18
    GPT-5.4 Mini

    OpenAI · 400,000 context

    Input

    $0.750/M

    Output

    $4.50/M

  19. 19
    Qwen3 Max

    Qwen · 262,144 context

    Input

    $0.780/M

    Output

    $3.90/M

  20. 20
    GLM 5.1

    Z Ai · 202,752 context

    Input

    $0.966/M

    Output

    $3.04/M

  21. 21
    Claude Haiku 4.5

    Anthropic · 200,000 context

    Input

    $1.00/M

    Output

    $5.00/M

  22. 22
    GPT-5.6 Luna

    OpenAI · 1,050,000 context

    Input

    $1.00/M

    Output

    $6.00/M

  23. 23
    Qwen3.7 Max

    Qwen · 1,000,000 context

    Input

    $1.25/M

    Output

    $3.75/M

  24. 24
    Gemini 2.5 Pro

    Google · 1,048,576 context

    Input

    $1.25/M

    Output

    $10.00/M

  25. 25
    Gemini 3.5 Flash

    Google · 1,048,576 context

    Input

    $1.50/M

    Output

    $9.00/M

  26. 26
    Grok 4.5

    xAI · 500,000 context

    Input

    $2.00/M

    Output

    $6.00/M

  27. 27
    Mistral Large

    Mistral · 128,000 context

    Input

    $2.00/M

    Output

    $6.00/M

  28. 28
    o3

    OpenAI · 200,000 context

    Input

    $2.00/M

    Output

    $8.00/M

  29. 29
    Claude Sonnet 5

    Anthropic · 1,000,000 context

    Input

    $2.00/M

    Output

    $10.00/M

  30. 30
    Gemini 3.1 Pro Preview

    Google · 1,048,576 context

    Input

    $2.00/M

    Output

    $12.00/M

  31. 31
    GPT-4o

    OpenAI · 128,000 context

    Input

    $2.50/M

    Output

    $10.00/M

  32. 32
    GPT-5.6 Terra

    OpenAI · 1,050,000 context

    Input

    $2.50/M

    Output

    $15.00/M

  33. 33
    GPT-5.4

    OpenAI · 1,050,000 context

    Input

    $2.50/M

    Output

    $15.00/M

  34. 34
    Claude Sonnet 4.5

    Anthropic · 1,000,000 context

    Input

    $3.00/M

    Output

    $15.00/M

  35. 35
    Claude Sonnet 4

    Anthropic · 1,000,000 context

    Input

    $3.00/M

    Output

    $15.00/M

  36. 36
    Claude Sonnet 4.6

    Anthropic · 1,000,000 context

    Input

    $3.00/M

    Output

    $15.00/M

  37. 37
    Claude Opus 4.6

    Anthropic · 1,000,000 context

    Input

    $5.00/M

    Output

    $25.00/M

  38. 38
    Claude Opus 4.8

    Anthropic · 1,000,000 context

    Input

    $5.00/M

    Output

    $25.00/M

  39. 39
    Claude Opus 4.7

    Anthropic · 1,000,000 context

    Input

    $5.00/M

    Output

    $25.00/M

  40. 40
    GPT-5.6 Sol

    OpenAI · 1,050,000 context

    Input

    $5.00/M

    Output

    $30.00/M