Codex vs. Grok Build

Comparison between Codex and Grok Build across the Artificial Analysis Coding Agent Index, including benchmark scores, cost, execution time, and token usage.

For details relating to our methodology, see our methodology page.

Explore other comparisons
vs

Highlights

Updated
Artificial Analysis Coding Agent Index v1.5 · Higher is better
Average agent wall time per task · Lower is better
Average API cost per task (USD) · Lower is better

Comparison

Side-by-side comparison of Codex and Grok Build.

Coding Agent Comparison

Metric
Codex
GPT-6 Astra (max)
Grok Build
Grok 4.7 (xhigh)
Analysis
Agent Harness
Codex
Grok Build
Representative Model
GPT-6 Astra (max)
Grok 4.7 (xhigh)
Coding Agent Index
62
56
Codex has a higher Coding Agent Index than Grok Build
DeepSWE v1.1
68%
73%
Grok Build has a higher DeepSWE v1.1 score than Codex
Terminal-Bench 4.0
56%
33%
Codex has a higher Terminal-Bench 4.0 score than Grok Build
SWE-Atlas-QnA
62%
63%
Grok Build has a higher SWE-Atlas-QnA score than Codex
Cost per Task
$7.47
$8.82
Codex has a lower cost per task than Grok Build
Time per Task
29.4m
39.2m
Codex has a lower time per task than Grok Build
Turns per Task
39.4
162.6
Codex has a lower turns per task than Grok Build
Token Usage per Task
3.3M
14.3M
Codex has a lower token usage per task than Grok Build
Cache Hit Rate
93%
94%
Grok Build has a higher cache hit rate than Codex

Model Variants

Evaluated model variants for Codex and Grok Build.

Model Variants

Codex
GPT-6 Astra (max)
62
68%
56%
62%
$7.47
29.4m
3.3M
Codex
GPT-6 Sol (max)
57
69%
43%
58%
$2.99
22.3m
9.8M
Codex
GPT-5.6 Sol (max)
55
72%
37%
54%
$6.35
20.6m
10.2M
Codex
GPT-5.6 Luna (max)
43
66%
15%
49%
$0.44
23.5m
14.9M
Codex
DeepSeek V4 Pro 0813 (max)
43
57%
10%
62%
$0.24
40.3m
24.2M
Codex
GPT-6 Luna (max)
41
64%
15%
44%
$0.18
21.4m
10.2M
Codex
DeepSeek V4 Flash 0731 (max)
39
54%
11%
51%
$0.09
18.3m
15.4M
Grok Build
Grok 4.7 (xhigh)
56
73%
33%
63%
$8.82
39.2m
14.3M
Grok Build
Grok 4.6 (xhigh)
47
65%
18%
58%
$3.57
19.5m
5.5M

Performance

Performance across the Artificial Analysis Coding Agent Index.

Artificial Analysis Coding Agent Index

Artificial Analysis Coding Agent Index v1.5 incorporates 3 benchmarks: DeepSWE v1.1, Terminal-Bench 4.0, and SWE-Atlas-QnA · Higher is better

Artificial Analysis Coding Agent Index vs. Cost per Task

Artificial Analysis Coding Agent Index vs. average pay-per-token API cost per task (USD)
Most attractive quadrant

Token Usage

Token consumption across the Artificial Analysis Coding Agent Index.

Token Usage per Task

Average input, cache, and output tokens per task
Prompt cache hit rates can vary significantly by provider routing, which can materially change effective cost.

Artificial Analysis Coding Agent Index vs. Total Tokens

Artificial Analysis Coding Agent Index vs. average total tokens per task
Most attractive quadrant

Cost

Pay-per-token API cost across the Artificial Analysis Coding Agent Index, based on current per-token pricing.

Cost per Task

Average pay-per-token API cost per task (USD) · Lower is better

Execution Time

Active agent runtime across the Artificial Analysis Coding Agent Index.

Time per Task

Average agent wall time per task · Lower is better

Artificial Analysis Coding Agent Index vs. Execution Time

Artificial Analysis Coding Agent Index vs. average agent wall time per task
Most attractive quadrant