# GPT-5.1-Codex vs Sonar

> GPT-5.1-Codex and Sonar score almost the same on the Noometry Index (38.2 vs 37.8), so choose on price, context window or the category you care about most.

- Canonical page: https://noometry.com/compare/gpt-5-1-codex-vs-sonar
- Last updated: 2026-10-10
- Shared benchmarks: 0

## Summary

- The widest gap is in coding, where GPT-5.1-Codex leads 41.7 to 35.1.
- Sonar is cheaper at $1 / $1 per million input/output tokens, against $1.25 / $10 for GPT-5.1-Codex.
- GPT-5.1-Codex accepts more context: 400K tokens versus 128K.

## Snapshot

| | GPT-5.1-Codex | Sonar |
|---|---|---|
| Provider | OpenAI | Perplexity |
| Noometry Index | 38.2 | 37.8 |
| Rank | 178 | 184 |
| Context | 400K | 128K |
| Input $/M | $1.25 | $1 |
| Output $/M | $10 | $1 |
| Weights | Proprietary | Proprietary |

## Coding

- GPT-5.1-Codex: 41.7 (#107)
- Sonar: 35.1 (#217)

| Benchmark | GPT-5.1-Codex | Sonar |
|---|---|---|
| SWE-bench Verified (bash only) | 66% | — |
| LMArena WebDev | 1337 | — |
| LiveBench Coding | — | 35.1% |
| ALE-Bench | 1,245 | — |

## Agentic & Tool Use

- GPT-5.1-Codex: 37.8 (#32)
- Sonar: —

| Benchmark | GPT-5.1-Codex | Sonar |
|---|---|---|
| Terminal-Bench | 60.4% | — |
| METR Time Horizons | 70.8% | — |

## Reasoning

- GPT-5.1-Codex: —
- Sonar: 20.3 (#221)

| Benchmark | GPT-5.1-Codex | Sonar |
|---|---|---|
| LiveBench Reasoning | — | 46.3% |
| LiveBench Data Analysis | — | 37.9% |
| LiveBench | — | 46.9% |

## Math

- GPT-5.1-Codex: 29.3 (#218)
- Sonar: 31.3 (#197)

| Benchmark | GPT-5.1-Codex | Sonar |
|---|---|---|
| ProofBench | 9% | — |
| LiveBench Math | — | 41.6% |

## Instruction Following

- GPT-5.1-Codex: —
- Sonar: 71.5 (#146)

| Benchmark | GPT-5.1-Codex | Sonar |
|---|---|---|
| LiveBench Instruction Following | — | 76.2% |

## Writing & Preference

- GPT-5.1-Codex: —
- Sonar: 52.6 (#166)

| Benchmark | GPT-5.1-Codex | Sonar |
|---|---|---|
| LiveBench Language | — | 44.1% |

## FAQ

### Is GPT-5.1-Codex better than Sonar?

GPT-5.1-Codex and Sonar score almost the same on the Noometry Index (38.2 vs 37.8), so choose on price, context window or the category you care about most.

### Which is cheaper, GPT-5.1-Codex or Sonar?

Sonar is cheaper. It lists at $1 per million input tokens and $1 per million output tokens; GPT-5.1-Codex lists at $1.25 and $10.

### Is GPT-5.1-Codex or Sonar better for coding?

GPT-5.1-Codex scores higher on coding benchmarks: 41.7 versus 35.1 in the Noometry coding category.

### Which has the bigger context window?

GPT-5.1-Codex does, with 400K tokens against 128K.

### How many benchmarks do GPT-5.1-Codex and Sonar share?

0 benchmarks have published results for both models. GPT-5.1-Codex has 6 scored results on Noometry and Sonar has 7.
