Skip to content
benchtopia
  • Fetching the field guide…

Under $1 · Best AI for

Best cheap AI for writing code

Models that cost under $1 per million tokens (about 750,000 words, mixing reading and writing 3:1).

Answer: Claude Haiku 5.5 (59/100 · $0.2 per 1M tokens)

Claude Haiku 5.5 from Anthropic. It scores 59/100 for writing code, #12 among all 35 current models (the overall leader, GPT-6 Astra, scores 91).

All 3 under $1 models for writing code

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.

  1. 1Claude Haiku 5.5Anthropic · #12 of 35 overall · a few tests59
  2. 2GPT-5.6 LunaOpenAI · #25 of 35 overall · a few tests42
  3. 3GLM-5.3-FlashZ.ai (Zhipu) · #28 of 35 overall · a few tests32

Score, price and memory side by side

Cost per job = one long request (≈ 20K tokens read, 2K written), using list API prices.

ModelScore$ / 1M tokensCost per jobMemoryReleased
Claude Haiku 5.559$0.2$0.0031MOct 2026
GPT-5.6 Luna42$0.45$0.00641.1MJul 2026
GLM-5.3-Flash32$0.24$0.0041MAug 2026

Quick answers

What's the best cheap AI for writing code?

Claude Haiku 5.5 from Anthropic. It scores 59/100 for writing code, #12 among all 35 current models (the overall leader, GPT-6 Astra, scores 91).

About Claude Haiku 5.5 →
What's the runner-up?

GPT-5.6 Luna, scoring 42 at $0.45 per million tokens.

See the details →
How does it compare with the overall best for writing code?

GPT-6 Astra scores 91 vs 59, but costs about 100× as much per token.

Best AI for writing code →
How are these ranked?

Each model's score is the share of current AI models it beats on the writing code 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 writing code

Under $1: other jobs

24 jobs · scores update automatically from public test results · data as of November 21, 2026