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

Google vs xAI

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

Google has the lower entry price: Gemma 2 2B at $0.020 per million tokens blended, against Grok 3 mini at $0.360 on xAI, roughly 18.0× cheaper to start.

At the top of the range xAI goes higher: Grok 3 Fast at $11.00 per million tokens against Gemini 3 Pro at $5.00. Google offers more choice in our catalogue: 18 text models against 7. Google offers the larger maximum context window, 2,000,000 tokens against 1,000,000.

Catalogue side by side

Model catalogue and pricing comparison for Google and xAI
MetricGooglexAI
Models tracked187
Cheapest modelGemma 2 2B · $0.020/MGrok 3 mini · $0.360/M
Most expensive modelGemini 3 Pro · $5.00/MGrok 3 Fast · $11.00/M
Top-tier input / output$2.00 / $12.00$1.25 / $2.50
Largest context window2,000,0001,000,000
Models with public benchmarks12 of 185 of 7
Founded20232023
HeadquartersMountain View, 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

Google

Gemini family from Google DeepMind. Native multimodal across text, image, audio, video — and the largest production context windows.

Official pricing · API docs

Top of the line: Gemini 3.1 Pro at $2.00 input / $12.00 output per million tokens, 1,000,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 Google or xAI cheaper?

It depends which tier you need. Google 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 Google 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 Google 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.