Under $1 · Best AI for
Best cheap AI for working in the terminal
Models that cost under $1 per million tokens (about 750,000 words, mixing reading and writing 3:1).
Top tested so far: GPT-5.1-Codex-mini (75/100 · $0.69 per 1M tokens)

GPT-5.1-Codex-mini from OpenAI (best tested so far: most of the newest models haven't taken these tests yet). It scores 75/100 for working in the terminal, #12 among all 45 current models (the overall leader, GPT-5.5, scores 100).
All 14 under $1 models for working in the terminal
Score = share of all of today's AI models it beats on this job's tests (100 = best of all). Bar in coral = the overall #1, for reference.
- 1GPT-5.1-Codex-miniOpenAI · #12 of 45 overall · a few tests75
- 2MiniMax-M2.7MiniMax · #21 of 45 overall · a few tests55
- 3MiniMax-M2.5MiniMax · #24 of 45 overall · a few tests48
- 4DeepSeek-V3.2DeepSeek · #25 of 45 overall · a few tests45
- 5MiniMax-M2.1MiniMax · #27 of 45 overall · a few tests41
- 6GPT-5 miniOpenAI · #30 of 45 overall · a few tests34
- 7MiniMax-M2MiniMax · #33 of 45 overall · a few tests27
- 8Qwen3-Coder-480B-A35BAlibaba (Qwen) · #36 of 45 overall · a few tests20
- 9Qwen 3.6 35B-A3BAlibaba (Qwen) · #38 of 45 overall · a few tests16
- 10GPT-5 nanoOpenAI · #40 of 45 overall · a few tests11
- 11gpt-oss-120bOpenAI · #41 of 45 overall · a few tests9
- 12Gemini 2.5 Flash (Sep 2025)Google · #42 of 45 overall · a few tests7
- 13Qwen3.5-9BAlibaba (Qwen) · #44 of 45 overall · a few tests2
- 14gpt-oss-20bOpenAI · #45 of 45 overall · a few tests0
Score, price and memory side by side
Cost per job = one long request (≈ 20K tokens read, 2K written), using list API prices.
| Model | Score | $ / 1M tokens | Cost per job | Memory | Released |
|---|---|---|---|---|---|
| GPT-5.1-Codex-mini | 75 | $0.69 | $0.009 | 400K | Nov 2025 |
| MiniMax-M2.7 | 55 | $0.52 | $0.0084 | 205K | Mar 2026 |
| MiniMax-M2.5 | 48 | $0.52 | $0.0084 | 205K | Feb 2026 |
| DeepSeek-V3.2 | 45 | $0.29 | $0.006 | 164K | Dec 2025 |
| MiniMax-M2.1 | 41 | $0.52 | $0.0084 | 205K | Dec 2025 |
| GPT-5 mini | 34 | $0.69 | $0.009 | 400K | Aug 2025 |
| MiniMax-M2 | 27 | $0.52 | $0.0084 | 205K | Oct 2025 |
| Qwen3-Coder-480B-A35B | 20 | $0.47 | $0.008 | 262K | Jul 2025 |
| Qwen 3.6 35B-A3B | 16 | $0.84 | $0.012 | 262K | Apr 2026 |
| GPT-5 nano | 11 | $0.14 | $0.0018 | 400K | Aug 2025 |
| gpt-oss-120b | 9 | $0.1 | $0.0015 | 131K | Aug 2025 |
| Gemini 2.5 Flash (Sep 2025) | 7 | $0.85 | $0.011 | 1M | Sep 2025 |
| Qwen3.5-9B | 2 | $0.19 | $0.0039 | 262K | Feb 2026 |
| gpt-oss-20b | 0 | $0.06 | <$0.001 | 131K | Aug 2025 |
Quick answers
What's the best cheap AI for working in the terminal?
GPT-5.1-Codex-mini from OpenAI (best tested so far: most of the newest models haven't taken these tests yet). It scores 75/100 for working in the terminal, #12 among all 45 current models (the overall leader, GPT-5.5, scores 100).
About GPT-5.1-Codex-mini →What's the runner-up?
MiniMax-M2.7, scoring 55 at $0.52 per million tokens.
See the details →How does it compare with the overall best for working in the terminal?
GPT-5.5 scores 100 vs 75, but costs about 16× as much per token.
Best AI for working in the terminal →How are these ranked?
Each model's score is the share of current AI models it beats on the working in the terminal tests, weighted towards newer and harder tests. Models that cost under $1 per million tokens (about 750,000 words, mixing reading and writing 3:1).
How scores work →More ways to pick for working in the terminal
Under $1: other jobs
24 jobs · scores update automatically from public test results · data as of April 23, 2026