# GPT-5.2 Codex vs Sonar

> GPT-5.2 Codex is the stronger model overall, scoring 42.6 to 38.5 on the Noometry Index. Sonar costs 4.8× less per token, which makes it the better buy when GPT-5.2 Codex's lead doesn't matter for your workload.

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

## Summary

- The widest gap is in coding, where GPT-5.2 Codex leads 45.5 to 35.7.
- Sonar is cheaper at $1 / $1 per million input/output tokens, against $1.75 / $14 for GPT-5.2 Codex.
- GPT-5.2 Codex accepts more context: 400K tokens versus 128K.

## Snapshot

| | GPT-5.2 Codex | Sonar |
|---|---|---|
| Provider | OpenAI | Perplexity |
| Noometry Index | 42.6 | 38.5 |
| Rank | 111 | 187 |
| Context | 400K | 128K |
| Input $/M | $1.75 | $1 |
| Output $/M | $14 | $1 |
| Weights | Proprietary | Proprietary |

## Coding

- GPT-5.2 Codex: 45.5 (#71)
- Sonar: 35.7 (#221)

| Benchmark | GPT-5.2 Codex | Sonar |
|---|---|---|
| SWE-bench Verified (bash only) | 72.8% | — |
| LMArena WebDev | 1339 | — |
| SWE-bench Multilingual | 66.3% | — |
| LiveBench Coding | — | 35.1% |
| ALE-Bench | 1,300 | — |

## Agentic & Tool Use

- GPT-5.2 Codex: 41.0 (#22)
- Sonar: —

| Benchmark | GPT-5.2 Codex | Sonar |
|---|---|---|
| Terminal-Bench | 66.5% | — |

## Reasoning

- GPT-5.2 Codex: —
- Sonar: 21.1 (#227)

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

## Math

- GPT-5.2 Codex: —
- Sonar: 33.7 (#200)

| Benchmark | GPT-5.2 Codex | Sonar |
|---|---|---|
| LiveBench Math | — | 41.6% |

## Instruction Following

- GPT-5.2 Codex: —
- Sonar: 71.4 (#150)

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

## Writing & Preference

- GPT-5.2 Codex: —
- Sonar: 52.6 (#167)

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

## FAQ

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

GPT-5.2 Codex is the stronger model overall, scoring 42.6 to 38.5 on the Noometry Index. Sonar costs 4.8× less per token, which makes it the better buy when GPT-5.2 Codex's lead doesn't matter for your workload.

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

Sonar is cheaper. It lists at $1 per million input tokens and $1 per million output tokens; GPT-5.2 Codex lists at $1.75 and $14.

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

GPT-5.2 Codex scores higher on coding benchmarks: 45.5 versus 35.7 in the Noometry coding category.

### Which has the bigger context window?

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

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

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