Google vs xAI

LLM API pricing compared on live data, plan by plan.

Google logo
Google
Gemini Developer API
$0.56/1M tokens
starting price
VS
xAI logo
xAI
Grok API
$1.25/1M tokens
starting price

Google vs xAI at a glance

GooglexAI
Cheapest model Gemini 3.1 Flash-Lite · $0.25 in / $1.50 out grok-build-0.1 · $1.00 in / $2.00 out
Top-tier model Gemini 3.1 Pro Preview · $2.00 in / $12.00 out grok-4.7 · $2.00 in / $6.00 out
Models tracked 22 7
Prompt-caching discount Yes Yes
Category LLM API LLM API
Plans tracked 22 7

Green marks the lower price.

Prices last checked November 8, 2026 · re-checked twice a week from official pricing pages and APIs · How we collect prices

Every plan, side by side

Google

ModelPrice
Gemini 3 Pro $2.00 in / $10.00 out
Gemini 3 Pro Lite $1.00 in / $5.00 out
Gemini 3 Flash $0.75 in / $3.75 out
Gemini 3 Flash Lite $0.38 in / $1.88 out
Gemini 2.5 Flash $0.075 in / $3.75 out
Gemini 2.5 Flash Lite $0.38 in / $1.88 out
Gemini 3 Nano $0.30 in / $2.50 out
Gemini 3 Pro Flash $1.00 in / $5.00 out
Gemini 3.5 Flash $0.30 in / $2.50 out
Gemini 2.0 Flash $0.75 in / $3.75 out
Gemini 3 Pro Thinking $1.00 in / $5.00 out
Gemini 2 Flash $0.30 in / $2.50 out
Gemini 1.5 Flash $0.75 in / $3.75 out
Gemini 2.0 Live $0.75 in / $4.50 out
Gemini 4 Argon $2.00 in / $10.00 out
Gemini 3.8 Flash $0.75 in / $3.75 out
Gemini 3.6 Flash $0.75 in / $3.75 out
Gemini 3.5 Flash-Lite $0.30 in / $2.50 out
Gemini 3.1 Flash-Lite $0.25 in / $1.50 out
Gemini 3.1 Pro Preview $2.00 in / $12.00 out
Gemini 2.5 Pro $1.25 in / $10.00 out
Gemini 3 Flash Preview $0.50 in / $3.00 out

xAI

ModelPrice
grok-4.7 $2.00 in / $6.00 out
grok-4.6 $2.00 in / $6.00 out
grok-4.5 $2.00 in / $6.00 out
grok-4.3 $1.25 in / $2.50 out
grok-4.20-0309-reasoning $1.25 in / $2.50 out
grok-4.20-0309-non-reasoning $1.25 in / $2.50 out
grok-build-0.1 $1.00 in / $2.00 out

Related comparisons

Frequently asked questions

Is Google or xAI cheaper?

Google has the cheaper entry model: Gemini 3.1 Flash-Lite at a blended $0.56 per million tokens.

How current is this Google vs xAI comparison?

Both providers' prices come from CloudMart's live catalog, last checked November 8, 2026. The page is rebuilt from current data on every visit.

Not sure which option fits your workload?

Describe your project and the Planner picks the provider, sizes it, and estimates the monthly bill.

Plan my stack →
✦
CloudMart AI Compute
Answers from live pricing data
✦
What are you building?
Compare providers, estimate costs, or get a recommendation - answers come from CloudMart's live dataset, never made-up prices.
Enter to send · Shift+Enter for a new line
Compare:
Report a problem