Model Comparison

GPT-5 CodexGrok 4
Let's see who can write code better - GPT-5 Codex or Grok 4

Model Information

GPT-5 Codex

OpenAI

Description

Flagship model from OpenAI optimised for coding tasks

Specifications

Context Window272K
Max Output33K
ReleasedSep 2025
API

Pricing (per 1M)

In / Out
$1.25/ $10

Key Features

CodingAdvanced reasoningMulti-modal native

Strengths

  • State-of-the-art performance
  • Optimised for coding
  • Large context window

Weaknesses

  • Likely very expensive
  • Unknown specifications

Agent Support

No known agents

Grok 4

xAI

Description

Advanced flagship model from xAI with superior reasoning

Specifications

Context Window256K
Max Output16K
ReleasedJul 2024
API

Pricing (per 1M)

In / Out
$3/ $15

Key Features

Advanced reasoningLarge context windowSuperior performance

Strengths

  • Excellent reasoning abilities
  • Very large context
  • High-quality outputs

Weaknesses

  • Higher cost
  • Slower inference

Agent Support

No known agents