ChatGPT · Best AI for
Best ChatGPT model for writing code
Only OpenAI models, scored against every current AI on the same tests, so you can see which one to pick and how it stacks up.
Answer: GPT-6 Astra (91/100 · $20 per 1M tokens)

GPT-6 Astra. It scores 91/100 for writing code, which makes it the best of every AI we track.
All 7 ChatGPT 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.
- 1GPT-6 Astra#1 of 35 overall · a few tests91
- 2GPT-5.5#10 of 35 overall · a few tests61
- 3GPT-5.6 Terra#14 of 35 overall · a few tests58
- 4GPT-5.6 Sol#21 of 35 overall · plenty of tests47
- 5GPT-5.4#23 of 35 overall · a few tests44
- 6GPT-5.2#24 of 35 overall · a few tests43
- 7GPT-5.6 Luna#25 of 35 overall · a few tests42
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-6 Astra | 91 | $20 | $0.3 | 1.1M | Sep 2026 |
| GPT-5.5 | 61 | $11 | $0.16 | 1.1M | Apr 2026 |
| GPT-5.6 Terra | 58 | $4.50 | $0.064 | 1.1M | Jul 2026 |
| GPT-5.6 Sol | 47 | $8 | $0.12 | 1.1M | Jul 2026 |
| GPT-5.4 | 44 | $5.63 | $0.08 | 1.1M | Mar 2026 |
| GPT-5.2 | 43 | $4.81 | $0.063 | 400K | Dec 2025 |
| GPT-5.6 Luna | 42 | $0.45 | $0.0064 | 1.1M | Jul 2026 |
Quick answers
Which ChatGPT model is best for writing code?
GPT-6 Astra. It scores 91/100 for writing code, which makes it the best of every AI we track.
About GPT-6 Astra →What's the runner-up?
GPT-5.5, scoring 61 at $11 per million tokens.
See the details →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. Only OpenAI models, scored against every current AI on the same tests, so you can see which one to pick and how it stacks up.
How scores work →More ways to pick for writing code
ChatGPT for other jobs
24 jobs · scores update automatically from public test results · data as of November 21, 2026