← Back to all comparisons
Side-by-side
Grok 4 vs GPT-5 mini
xAI vs OpenAI — head-to-head specs and pricing.
xAI
Grok 4
xAI's flagship model with real-time X data.
Grok 4 from xAI — strong reasoning with real-time context from X (formerly Twitter).
OpenAI
GPT-5 mini
Fast, cheap, still smart.
GPT-5 mini is a smaller variant of GPT-5 optimized for throughput and cost. Great default for chat and classification.
| Spec | Grok 4 | GPT-5 mini |
|---|---|---|
| Provider | xAI | OpenAI |
| Input cost / 1M tokens | $3.60 | $0.18 |
| Output cost / 1M tokens | $18.00 | $0.72 |
| Context window | 256,000 tokens | 128,000 tokens |
| Max output tokens | — | 8,000 |
| Streaming support | ✓ | ✓ |
| Tool calling | ✓ | ✓ |
| Vision input | — | ✓ |
| JSON mode | — | ✓ |
| Status | ACTIVE | ACTIVE |
Use both via OneAPIKey — one key, one bill
OneAPIKey aggregates xAI, OpenAI, and 10 more providers behind a single API. Smart Routing automatically picks the best model per request — or you choose explicitly.
More comparisons: