// head_to_head

GPT-5.2-Codex vs SpaceXAI: Grok 4.6

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

SpaceXAI: Grok 4.6 wins outright — it scores higher and costs less.

SpaceXAI: Grok 4.6 leads by 4.1 points overall while listing 1.6× cheaper per blended million tokens. There is no trade-off to reason about here; the only reason to pick the other is a constraint this table does not show, like an existing contract, a region, or a provider you are already on. The two cost measures disagree here, which is worth knowing: SpaceXAI: Grok 4.6 has the lower sticker price, but GPT-5.2-Codex earns each point of capability for less — $0.1001 against $0.1181 — because per-token rates do not predict how many tokens a model actually spends on a task.

openai

GPT-5.2-Codex

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

x-ai

SpaceXAI: Grok 4.6

Blended / 1M
$3.00
Context
500K
Released
Aug 12, 2026
Overall score
78.0
reasoningtool callingimage inputfile inputprompt caching

Specs and pricing

MetricGPT-5.2-CodexSpaceXAI: Grok 4.6
LiveBench overall

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

74.078.0win
Cost per point

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

$0.1001win$0.1181
Blended price / 1M

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

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

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

$0.175win$0.500
Context window400K500K
Max output tokens128K

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, SpaceXAI: Grok 4.6 below, both out of 100.

Agentic coding
49.4
57.0
Coding
83.6
76.8
Reasoning
77.7
90.5
Mathematics
88.8
92.6
Data analysis
78.2
73.9
Language
73.7
83.7
Instruction following
66.4
71.9

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-CodexSpaceXAI: Grok 4.6
Support chatbot

1.2K in / 400 out × 200K requests

$1426.60/mo$852.00/mo
RAG assistant

8K in / 600 out × 100K requests

$1610.00/mo$1360.00/mo
Coding agent

40K in / 4K out × 20K requests

$1638.00/mo$1240.00/mo
Document extraction

20K in / 1.5K out × 50K requests

$2721.25/mo$2375.00/mo
Bulk classification

500 in / 20 out × 5M requests

$4987.50/mo$4850.00/mo
Run these two through the cost calculator

Which should you pick?

You are running this at volume

GPT-5.2-Codex

Lowest measured cost per point of capability at $0.1001 per point — the gap compounds with every request.

Quality matters more than the bill

SpaceXAI: Grok 4.6

Highest overall LiveBench score of the two at 78.0.

The workload is coding or agentic work

SpaceXAI: Grok 4.6

Leads on agentic coding — 57.0 against 49.4.

GPT-5.2-Codex vs SpaceXAI: Grok 4.6 FAQ

Which is better, GPT-5.2-Codex or SpaceXAI: Grok 4.6?

SpaceXAI: Grok 4.6 wins outright — it scores higher and costs less. SpaceXAI: Grok 4.6 leads by 4.1 points overall while listing 1.6× cheaper per blended million tokens. There is no trade-off to reason about here; the only reason to pick the other is a constraint this table does not show, like an existing contract, a region, or a provider you are already on. The two cost measures disagree here, which is worth knowing: SpaceXAI: Grok 4.6 has the lower sticker price, but GPT-5.2-Codex earns each point of capability for less — $0.1001 against $0.1181 — because per-token rates do not predict how many tokens a model actually spends on a task.

Is GPT-5.2-Codex cheaper than SpaceXAI: Grok 4.6?

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

GPT-5.2-Codex vs SpaceXAI: Grok 4.6: which scores higher on benchmarks?

GPT-5.2-Codex scores 74.0 and SpaceXAI: Grok 4.6 scores 78.0 overall on LiveBench, the mean of its seven categories. That is a 4.1-point lead for SpaceXAI: Grok 4.6. Category scores differ from the overall figure — a model can lead on reasoning and trail on coding, which the per-category table above breaks out.

Which gives better value for money, GPT-5.2-Codex or SpaceXAI: Grok 4.6?

GPT-5.2-Codex. Cost per point divides the measured dollars LiveBench spent running the benchmark by the score it earned, so it captures something token pricing misses: a reasoning model can emit many times more tokens than its per-token rate suggests. GPT-5.2-Codex works out at $0.1001 per point and SpaceXAI: Grok 4.6 at $0.1181.

Does GPT-5.2-Codex or SpaceXAI: Grok 4.6 have a bigger context window?

They are effectively the same — 400K for GPT-5.2-Codex and 500K for SpaceXAI: Grok 4.6.

Do GPT-5.2-Codex and SpaceXAI: Grok 4.6 support prompt caching?

Both publish a cached-input rate: $0.175 per million for GPT-5.2-Codex and $0.500 for SpaceXAI: Grok 4.6, against full input rates of $1.75 and $2.00. On a workload with a long stable prefix — a system prompt, a tool schema, a retrieved corpus — that changes the economics more than the headline price does.

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.