GOOGLE / XAI

Gemini vs Grok API pricing calculator.

Compare Google Gemini and xAI Grok API token costs with model, context, cache, region, and quality assumptions kept visible.

Google
6 models
Published range $0.25$18
xAI
5 models
Published range $1$12
Verified
2026-08-16
Unit
USD / 1M tokens
SHARED WORKLOAD

Change the models, not the accounting.

Both sides receive the same requests and token counts. Set separate quality pass rates so a low token price cannot hide rejected answers.

SAME WORKLOAD · TWO API RATE CARDS
Google

Gemini 3.7 Flash

Developer API · Standard · introductory · Gemini Developer API
Monthly API spend
$41.25
Cost / accepted answer
$0.0046
Quality assumption
90%

$0.75 input · $0.075 cache read · $3.75 output / 1M

Official source ↗
xAI

Grok 4.6

Standard · below 200K prompt · xAI direct API
Monthly API spend
$90.00
Cost / accepted answer
$0.0100
Quality assumption
90%

$2 input · $0.5 cache read · $6 output / 1M

Official source ↗
QUALITY-ADJUSTED RESULTGoogle is lower in this scenario.

At the entered pass rates, its estimated cost per accepted answer is $0.0046. This is scenario math, not evidence that the selected models have equal capabilities.

API rates are USD per one million tokens. The estimate excludes cache writes or storage, tools, retries, regional uplifts, taxes, latency failures, and consumer-plan quotas.

Gemini Developer API, Vertex AI, and xAI regional price scopes are not interchangeable. Match each rate card to the actual API surface and deployment region.

GOOGLE

Inspect the exact rate card

7 currently effective cards are available in the calculator. Context bands and regions remain separate.

Open Google pricing
XAI

Keep billing scope intact

7 currently effective cards are available in the calculator. A missing cache rate is never treated as free.

Open xAI pricing
QUESTIONS

Before you call a winner.

Which is cheaper, Google or xAI?

There is no provider-wide answer. Cost depends on the exact model tier, input and output size, cache behavior, region, execution mode, and the share of answers that pass the workload’s quality bar.

Does this comparison prove the models have equal quality?

No. The calculator keeps separate quality-pass assumptions so you can enter measured results. Equal token counts or prices do not establish equivalent capabilities.

Are consumer subscriptions included?

No. ChatGPT, Claude, Gemini, Grok, Kimi, and other consumer-plan quotas are separate from API token billing.