AI Model Intelligence

Comparison · 2026-05-12

GPT-5 vs Grok 4

Side-by-side comparison of pricing, context window and capabilities for GPT-5 (OpenAI) and Grok 4 (xAI). Focus: flagship.

GPT-5Grok 4
VendorOpenAIxAI
Input price / 1M tokens$1.25$3.00
Output price / 1M tokens$10.00$15.00
Total per 1M (in + out)$11.25$18.00
Context window400K256K
Max output tokens128K64K
Tool callingYesYes
Structured outputYesUnknown
ReasoningYesYes
Vision inputYesNo
Open weightsNoNo
Provider availability20 providers12 providers
Release date2025-08-072025-07-09
Knowledge cutoff2024-09-302025-07

Quick takeaway

  • GPT-5 is 1.6× cheaper per 1M tokens (input + output combined).
  • GPT-5 has a larger context window (400K vs 256K).
  • Only GPT-5 supports structured output / JSON mode.
  • GPT-5 is more widely available across providers (20 vs 12).
GPT-5 · See all 20 providers →Grok 4 · See all 12 providers →

Last updated:

Prices in USD per 1M tokens. Unknown means the provider does not publish per-token pricing.

Data is sourced from models.dev and normalized for comparison. Prices and capabilities may change. Always verify critical production decisions with the provider's official documentation.