// head_to_head

GPT-5.2-Codex vs Sonar Pro

Published LiveBench scores across all seven categories, live list pricing, context windows, and the measured cost of a point of capability — for both models, side by side.

OpenRouter + LiveBenchAll comparisonsFull leaderboard

GPT-5.2-Codex is the cheaper of the two; neither can be ranked on quality here.

Sonar Pro does not have a published LiveBench run, so this comparison covers price, context and declared capabilities only. A missing score means "not evaluated", not "worse" — the right way to separate these two is an eval on your own workload.

openai

GPT-5.2-Codex

Blended / 1M
$4.81
Context
400K
Released
Jan 14, 2026
Overall score
74.0
reasoningtool callingimage inputprompt caching

perplexity

Sonar Pro

Blended / 1M
$6.00
Context
200K
Released
Mar 7, 2025
Overall score
Not evaluated
image input

Specs and pricing

MetricGPT-5.2-CodexSonar Pro
LiveBench overall

Mean of the seven LiveBench category scores, 0–100. Higher is better.

74.0
Cost per point

Measured benchmark spend divided by overall score — dollars per point of capability.

$0.1001
Blended price / 1M

3:1 input:output mix, the usual shape of production traffic.

$4.81win$6.00
Input price / 1M$1.75win$3.00
Output price / 1M$14.00$15.00
Cached input / 1M

Price of an input token served from the prompt cache, where the provider publishes one.

$0.175
Context window400Kwin200K
Max output tokens128Kwin8K

Benchmarks by category

An overall score averages away the thing you probably care about. These are the seven LiveBench categories scored separately — GPT-5.2-Codex on top, Sonar Pro below, both out of 100.

Agentic coding
49.4
Coding
83.6
Reasoning
77.7
Mathematics
88.8
Data analysis
78.2
Language
73.7
Instruction following
66.4

What each one costs to run

Per-token prices are hard to feel. These are monthly list costs for both models across five workload shapes, using each provider's published cached-input rate where there is one.

WorkloadGPT-5.2-CodexSonar Pro
Support chatbot

1.2K in / 400 out × 200K requests

$1,427/mo$1,920/mo
RAG assistant

8K in / 600 out × 100K requests

$1,610/mo$3,300/mo
Coding agent

40K in / 4K out × 20K requests

$1,638/mo$3,600/mo
Document extraction

20K in / 1.5K out × 50K requests

$2,721/mo$4,125/mo
Bulk classification

500 in / 20 out × 5M requests

$4,988/mo$9,000/mo
Run these two through the cost calculator

Which should you pick?

You need to fit large documents in one call

GPT-5.2-Codex

Wider context window — 400K against 200K.

GPT-5.2-Codex vs Sonar Pro FAQ

Which is better, GPT-5.2-Codex or Sonar Pro?

GPT-5.2-Codex is the cheaper of the two; neither can be ranked on quality here. Sonar Pro does not have a published LiveBench run, so this comparison covers price, context and declared capabilities only. A missing score means "not evaluated", not "worse" — the right way to separate these two is an eval on your own workload.

Is GPT-5.2-Codex cheaper than Sonar Pro?

GPT-5.2-Codex is cheaper. On a 3:1 input:output blend, GPT-5.2-Codex lists at $4.81 per million tokens and Sonar Pro at $6.00 — GPT-5.2-Codex is 25% cheaper. Input and output are priced separately — GPT-5.2-Codex charges $1.75 in and $14.00 out, Sonar Pro charges $3.00 and $15.00 — so the model that looks cheaper flips depending on how output-heavy your workload is.

Does GPT-5.2-Codex or Sonar Pro have a bigger context window?

GPT-5.2-Codex has the larger context window: 400K for GPT-5.2-Codex against 200K for Sonar Pro. Note that a window you can fill is not a window you should fill — retrieval quality usually degrades well before the limit, and you pay for every token you put in it.

Do GPT-5.2-Codex and Sonar Pro support prompt caching?

GPT-5.2-Codex publishes a cached-input rate of $0.175 per million tokens against a full input rate of $1.75. The catalogue lists no separate cached rate for Sonar Pro, which means the provider does not price it separately here — not that caching is unavailable.

Related comparisons

How these numbers are produced

  • Price — provider list price from OpenRouter, refreshed every 15 minutes. “Blended” is a 3:1 input:output mix.
  • ScoresLiveBench release 2026-06-25, using their own category map. Each model shows its strongest published run. A blank means “not evaluated”, never “bad”.
  • Cost per point — the measured dollars LiveBench spent on the run, divided by the score it earned.
  • “Win” — awarded only past a threshold: one full point on a benchmark score, 10% on a price, 25% on a context window. Anything tighter reports as a tie, because effort settings alone move a LiveBench score by more than that.

Published benchmarks rank models on someone else's tasks. Before committing, see LLM & agent evaluation for building an eval on your own.