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-5 | Grok 4 | |
|---|---|---|
| Vendor | OpenAI | xAI |
| 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 window | 400K | 256K |
| Max output tokens | 128K | 64K |
| Tool calling | ✓ Yes | ✓ Yes |
| Structured output | ✓ Yes | Unknown |
| Reasoning | ✓ Yes | ✓ Yes |
| Vision input | ✓ Yes | ✗ No |
| Open weights | ✗ No | ✗ No |
| Provider availability | 20 providers | 12 providers |
| Release date | 2025-08-07 | 2025-07-09 |
| Knowledge cutoff | 2024-09-30 | 2025-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).
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.