Model comparison · Updated 10 Oct 2026

GPT-5.2-Codex vs Grok 4.7

GPT-5.2-Codex is about 1.1× cheaper on input ($1.75 against $2.00 per 1M tokens), though Grok 4.7 is cheaper on output. Grok 4.7 has the larger context window (500K against 400K tokens). For a support chatbot at 10,000 chats a day, the standard-tier bill is about $2,048 a month for GPT-5.2-Codex and $1,440 for Grok 4.7.

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “GPT-5.2-Codex vs Grok 4.7”. Retrieved 10 Oct 2026. https://modelsatlas.com/compare/openai/gpt-5-2-codex/vs/xai/grok-4-7

Model A

GPT-5.2-Codex

by OpenAI · weights not marked open · GRIDE4

Input / 1M
$1.75
observed We measured
Source
Our catalogue
Retrieved
17 Aug 2026
Output / 1M$14.00
Context400K
vs

Model B

Grok 4.7

by xAI · weights not marked open · GRIDE4

Input / 1M
$2.00
observed We measured
Source
Our catalogue
Retrieved
10 Oct 2026
Output / 1M$6.00
Context500K

Key numbers

Standard tier · highlighted = better

GPT-5.2-Codex
Grok 4.7
Input / 1M tokens
$1.75
$2.00
Output / 1M tokens
$14.00
$6.00
Batch input / output
Not listed
Not listed
Context window
400,000
500,000
Input types
Not disclosed
Not disclosed
Weights
Not marked open
Not marked open
Tiers listed
standard
standard
Prices checked
2026-08-17
2026-10-10

What it costs for real workloads

Monthly, standard tier, 30 days

Support chatbot10k chats/day · 1.5k in, 300 out
$2,048/mo
$1,440/mo
RAG over documents2k queries/day · 12k in, 500 out
$1,680/mo
$1,620/mo
Coding agent300 tasks/day · 60k in, 8k out
$1,953/mo
$1,512/mo

GPT-5.2-Codex   Grok 4.7 · Derived from the standard-tier prices above, input and output tokens per request as stated, 30 days. Excludes caching discounts and batch. Try your own numbers.

On the atlas

Price band (A–H) × context band (1–6)

Same square. GPT-5.2-Codex and Grok 4.7 share E4.

Same square as GPT-5.2-Codex: GPT-5 ($1.25), GPT-5.1 ($1.25), GPT-5.1-Codex ($1.25). Open E4

AFreeB<$0.10C$0.10–0.30D$0.30–1E$1–3F$3–10G$10–30H$30+1<32K232–128K3128–256K4256K–1M51M6>1MINPUT PRICE PER 1M TOKENS →CONTEXT WINDOW ↑ · position within a square follows the real valueGPT-5.2 · E4GPT-5.3-Codex · E4Mistral Large 3 2512 · E4Grok 4.5 · E4Grok 4.6 · E4GPT-5.2-CodexGPT-5.2-CodexGrok 4.7Grok 4.7
GPT-5.2-CodexGrok 4.7Nearest neighboursOpen weights
View the map as a table (1 squares)
SquarePrice bandContext bandModels
GRIDE4$1–3256K–1MGPT-5.2-Codex, Grok 4.7, GPT-5.2, GPT-5.3-Codex, Mistral Large 3 2512, Grok 4.5, Grok 4.6

Capabilities side by side

Only what our records list

GPT-5.2-Codex
Grok 4.7
Vision input
Not disclosed
Not disclosed
Audio input
Not disclosed
Not disclosed
Open weights
Not marked open
Not marked open
Batch tier
Not listed
Not listed
Free tier
Not listed
Not listed
Thinking tier
Not listed
Not listed

Neither record lists input types, so we do not claim any.

Which should you choose?

Editorial

Choose GPT-5.2-Codex if…

  • you pay by the token: it costs $1.75 per 1M input against $2.00

Choose Grok 4.7 if…

  • output dominates your bill: $6.00 per 1M output against $14.00
  • your prompts are long: it takes 500,000 tokens against 400,000

Each reason is a fact from the tables above. Picking between them is our judgement, and we do not benchmark quality: price and context are what we can measure, so test both on your own prompts before you commit.

Questions

Is GPT-5.2-Codex better than Grok 4.7?
We do not benchmark quality, so we cannot say. On the recorded numbers: GPT-5.2-Codex is about 1.1× cheaper on input ($1.75 against $2.00 per 1M tokens), though Grok 4.7 is cheaper on output. Grok 4.7 has the larger context window (500K against 400K tokens). For a support chatbot at 10,000 chats a day, the standard-tier bill is about $2,048 a month for GPT-5.2-Codex and $1,440 for Grok 4.7. Which is better for you depends on your task; test both on your own prompts.
Which is cheaper, GPT-5.2-Codex or Grok 4.7?
GPT-5.2-Codex: $1.75 against $2.00 per 1M input tokens, and $14.00 against $6.00 per 1M output, on standard pricing.
How much does each cost per 1M tokens?
GPT-5.2-Codex: $1.75 input and $14.00 output. Grok 4.7: $2.00 input and $6.00 output. Standard tier, USD.
Which has the larger context window?
Grok 4.7, with 500,000 tokens. GPT-5.2-Codex has 400,000 tokens.
Do both offer batch pricing?
Neither lists a batch tier in our catalogue.
Can both read images or audio?
Input types recorded for GPT-5.2-Codex: none recorded. For Grok 4.7: none recorded. Where a record lists none we say so rather than guess; check each vendor's documentation before relying on a capability.
Is either model open-weight?
GPT-5.2-Codex: not marked open-weight in our records. Grok 4.7: not marked open-weight in our records.
What would each cost for a support chatbot?
At 10,000 chats a day, 1,500 input and 300 output tokens each, 30 days, standard tier: about $2,048 a month for GPT-5.2-Codex and $1,440 for Grok 4.7. This is our calculation from the listed prices, not a quote.

About the two models

GPT-5.2-Codex

By OpenAI. $1.75 input and $14.00 output per 1M tokens, 400K context, atlas square E4. Tiers listed: standard.

Full specs & pricing →

Grok 4.7

By xAI. $2.00 input and $6.00 output per 1M tokens, 500K context, atlas square E4. Tiers listed: standard.

Full specs & pricing →

Compare GPT-5.2-Codex with…

Compare Grok 4.7 with…

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.