AI model comparison

GPT-5.2-Codex vs Grok 4.3

Compare benchmark results, pricing, and API capabilities for each model. Estimate the cost of your own token mix.

Change models
Loading the catalog…
Markdown
Context tokens
400K
Input / 1M
$1.75
Output / 1M
$14.00
Context tokens
1M
Input / 1M
$1.25
Output / 1M
$2.50
Benchmark snapshot
Code Completion
GPT-5.2-CodexGrok 4.3
86.957%
65.217%

Percent score · Result source · Test method

Catalog checked Nov 27, 202623 shared benchmark resultsRead the methodology

The trade-offs

Start with the differences that affect how this model fits your workload.

Benchmark results
GPT-5.2-Codex and Grok 4.3 scored 86.957% and 65.217%, respectively, on Code Completion. Use the test setup below to check whether it matches your workload.
Token cost
For 1 million input tokens and 250,000 output tokens, the listed rates estimate $5.25 for GPT-5.2-Codex and $1.875 for Grok 4.3.
Context window
Grok 4.3 lists 1,000,000 tokens of context. GPT-5.2-Codex lists 400,000 tokens. Reserve space for the output before routing long inputs.

Benchmarks

Shared results come from the same published benchmark release. Reasoning effort and serving configuration can differ.

Shared benchmark profilePercentage scores from the first eight shared groups, sorted by the page evidence order.

Source Result source · Test method

GPT-5.2-CodexGrok 4.3

Code Completion

Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

86.957%
65.217%
Test configurations
GPT-5.2-Codex
gpt-5.2-codex
Grok 4.3
grok-4.3

Code Generation

Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

80.282%
74.648%
Test configurations
GPT-5.2-Codex
gpt-5.2-codex
Grok 4.3
grok-4.3

Javascript

Agentic Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

68.182%
27.273%
Test configurations
GPT-5.2-Codex
gpt-5.2-codex
Grok 4.3
grok-4.3

Python

Agentic Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

60%
15%
Test configurations
GPT-5.2-Codex
gpt-5.2-codex
Grok 4.3
grok-4.3

Typescript

Agentic Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

20%
13.333%
Test configurations
GPT-5.2-Codex
gpt-5.2-codex
Grok 4.3
grok-4.3

Amps Hard

Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

98%
97%
Test configurations
GPT-5.2-Codex
gpt-5.2-codex
Grok 4.3
grok-4.3

Connections

Language · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

95%
94%
Test configurations
GPT-5.2-Codex
gpt-5.2-codex
Grok 4.3
grok-4.3

Consecutive Events

Data Analysis · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

89.016%
28.029%
Test configurations
GPT-5.2-Codex
gpt-5.2-codex
Grok 4.3
grok-4.3
Show 15 more shared results

Integrals With Game

Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

75%
63%
Test configurations
GPT-5.2-Codex
gpt-5.2-codex
Grok 4.3
grok-4.3

Logic With Navigation

Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

68%
66%
Test configurations
GPT-5.2-Codex
gpt-5.2-codex
Grok 4.3
grok-4.3

Math Comp

Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

95.098%
95.098%
Test configurations
GPT-5.2-Codex
gpt-5.2-codex
Grok 4.3
grok-4.3

Olympiad

Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

86.997%
82.258%
Test configurations
GPT-5.2-Codex
gpt-5.2-codex
Grok 4.3
grok-4.3

Paraphrase

IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

67.05%
64.383%
Test configurations
GPT-5.2-Codex
gpt-5.2-codex
Grok 4.3
grok-4.3

Plot Unscrambling

Language · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

56.035%
48.74%
Test configurations
GPT-5.2-Codex
gpt-5.2-codex
Grok 4.3
grok-4.3

Simplify

IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

60.567%
57.6%
Test configurations
GPT-5.2-Codex
gpt-5.2-codex
Grok 4.3
grok-4.3

Spatial

Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

94%
98%
Test configurations
GPT-5.2-Codex
gpt-5.2-codex
Grok 4.3
grok-4.3

Story Generation

IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

74.783%
70.6%
Test configurations
GPT-5.2-Codex
gpt-5.2-codex
Grok 4.3
grok-4.3

Summarize

IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

63.383%
58.417%
Test configurations
GPT-5.2-Codex
gpt-5.2-codex
Grok 4.3
grok-4.3

Tablejoin

Data Analysis · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

45.596%
41.25%
Test configurations
GPT-5.2-Codex
gpt-5.2-codex
Grok 4.3
grok-4.3

Tablereformat

Data Analysis · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

100%
98.039%
Test configurations
GPT-5.2-Codex
gpt-5.2-codex
Grok 4.3
grok-4.3

Theory Of Mind

Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

78.846%
61.538%
Test configurations
GPT-5.2-Codex
gpt-5.2-codex
Grok 4.3
grok-4.3

Typos

Language · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

70%
78%
Test configurations
GPT-5.2-Codex
gpt-5.2-codex
Grok 4.3
grok-4.3

Zebra Puzzle

Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method

70%
57.75%
Test configurations
GPT-5.2-Codex
gpt-5.2-codex
Grok 4.3
grok-4.3

Pricing and token cost

Listed OpenRouter prices in US dollars. Actual charges depend on the endpoint, tier, cache, and token mix.

USD per million tokensGPT-5.2-CodexGrok 4.3
Uncached input$1.75$1.25
Output$14.00$2.50
Cache read$0.175$0.20
Cache writeUnavailableUnavailable

Rates are a catalog snapshot. OpenRouter Models API

Estimate your workload

Enter total token counts. The estimate uses uncached input and output rates.

GPT-5.2-Codex$5.25
Grok 4.3$1.875

Grok 4.3 costs $3.375 less at this token mix.

Model specifications

Context, output limits, modalities, and supported API parameters from the catalog.

SpecificationGPT-5.2-CodexGrok 4.3
Catalog statusListedListed
Catalog model IDopenai/gpt-5.2-codexx-ai/grok-4.3
ProviderOpenAIxAI
Context window400,000 tokens1,000,000 tokens
Max output128,000 tokens900,000 tokens
Input modalitiesText, ImageText, Image, File
Output modalitiesTextText
Reasoning controlsListedListed
Tool callingListedListed
Structured outputsListedListed
Serving endpoints/api/v1/chat/completions, /api/v1/completions, /api/v1/messages, /api/v1/responses/api/v1/chat/completions, /api/v1/completions, /api/v1/messages, /api/v1/responses
Catalog listing dateJan 14, 2026Apr 30, 2026

Use with Weave Router

Set a quality bar on your own coding tasks. Then compare cost per completed task and use the same harness when you change models.

GPT-5.2-Codex

Weave Router availability is unverified for this model ID.

Grok 4.3

Weave Router availability is unverified for this model ID.

Catalog presence does not guarantee availability for a specific plan or account. Public Weave Router catalog · Nov 27, 2026

Explore Weave Router Read Weave Router benchmark results

Sources

Each benchmark links to its own result and test method when available.

MarkdownFull methodology