Claude Fable 5$22.000/MClaude Opus 5$11.000/MClaude Opus 4.8$11.000/MClaude Opus 4.7$11.000/MClaude Opus 4.6$11.000/MClaude Opus 4.5$33.000/MClaude Sonnet 3.7$6.600/MClaude Opus 3$33.000/MClaude 2.1$12.800/MClaude 2$12.800/MGPT-5.6 Sol$12.500/MGPT-5.6 Terra$5.000/MGPT-5.5$12.500/MGPT-5.2$5.425/MGPT-5.2-Codex$5.425/MGPT-5$3.875/MGPT-4.5$97.500/MGPT-4 Turbo Preview$16.000/MGPT-4$39.000/MGPT-4-32k$78.000/Mo3$19.000/Mo3-mini$2.090/Mo4-mini$2.090/Mo1$28.500/Mo1-mini$5.700/Mo1-preview$28.500/MGemini 3.5 Pro$5.000/MGemini 3.1 Pro$5.000/MGemini 3 Pro$5.000/MGemini 2.5 Pro$3.875/MClaude Fable 5$22.000/MClaude Opus 5$11.000/MClaude Opus 4.8$11.000/MClaude Opus 4.7$11.000/MClaude Opus 4.6$11.000/MClaude Opus 4.5$33.000/MClaude Sonnet 3.7$6.600/MClaude Opus 3$33.000/MClaude 2.1$12.800/MClaude 2$12.800/MGPT-5.6 Sol$12.500/MGPT-5.6 Terra$5.000/MGPT-5.5$12.500/MGPT-5.2$5.425/MGPT-5.2-Codex$5.425/MGPT-5$3.875/MGPT-4.5$97.500/MGPT-4 Turbo Preview$16.000/MGPT-4$39.000/MGPT-4-32k$78.000/Mo3$19.000/Mo3-mini$2.090/Mo4-mini$2.090/Mo1$28.500/Mo1-mini$5.700/Mo1-preview$28.500/MGemini 3.5 Pro$5.000/MGemini 3.1 Pro$5.000/MGemini 3 Pro$5.000/MGemini 2.5 Pro$3.875/M

OpenAI vs xAI

API pricing and model line-up compared · Prices checked 12 August 2026

OpenAI has the lower entry price: GPT-4.1 nano at $0.190 per million tokens blended, against Grok 3 mini at $0.360 on xAI, roughly 1.9× cheaper to start.

At the top of the range OpenAI goes higher: o1 at $28.50 per million tokens against Grok 3 Fast at $11.00. OpenAI offers more choice in our catalogue: 17 text models against 7. OpenAI offers the larger maximum context window, 1,050,000 tokens against 1,000,000.

Catalogue side by side

Model catalogue and pricing comparison for OpenAI and xAI
MetricOpenAIxAI
Models tracked177
Cheapest modelGPT-4.1 nano · $0.190/MGrok 3 mini · $0.360/M
Most expensive modelo1 · $28.50/MGrok 3 Fast · $11.00/M
Top-tier input / output$5.00 / $30.00$1.25 / $2.50
Largest context window1,050,0001,000,000
Models with public benchmarks14 of 175 of 7
Founded20152023
HeadquartersSan Francisco, USAPalo Alto, USA

Counts cover text-generation models in our curated catalogue, excluding retired SKUs, embeddings and non-text products. Blended rates weight input at 70 per cent and output at 30 per cent; how that is calculated.

About each provider

OpenAI

Maker of ChatGPT, GPT and the o-series reasoning models. Broadest API surface in the industry: chat, vision, audio, embeddings, image generation.

Official pricing · API docs

Top of the line: GPT-5.6 Sol at $5.00 input / $30.00 output per million tokens, 1,050,000 context.

xAI

Grok family with real-time access to the X firehose. Strong general reasoning and a contrarian, less-filtered tone.

Official pricing · API docs

Top of the line: Grok 4.3 at $1.25 input / $2.50 output per million tokens, 1,000,000 context.

Frequently asked questions

Is OpenAI or xAI cheaper?

It depends which tier you need. OpenAI has the lower entry price, but both run a range from budget to frontier models, so the fair comparison is tier against tier rather than vendor against vendor. Price the specific models you would actually call; the table above shows each side’s floor and ceiling.

Should I use OpenAI or xAI?

Neither wins outright. Shortlist by the capability tier your workload needs, then compare the specific models on price, context window and benchmark evidence. Multi-vendor setups are common precisely because the cheapest adequate model for one task is rarely the same vendor as for another.

Where do these OpenAI and xAI prices come from?

Each provider’s published rates, as tracked in our pricing index. Blended figures weight input at 70 per cent and output at 30 per cent and are calculated comparison metrics rather than published prices. Counts cover text-generation models only, excluding retired SKUs, embeddings and non-text products.

Go deeper

Other provider matchups

Figures are recomputed on every deploy from the curated catalogue. Prices checked 12 August 2026.