Gemini 3.8 Flash vs Grok 4.3 API pricing

Which one is cheaper depends on your mix of input and output tokens; see the workloads below. Prices last checked 2026-10-13.

Gemini 3.8 Flash (Google)Grok 4.3 (xAI)
Input $/1M tokens$0.75$1.25
Output $/1M tokens$3.75$2.5
Context—1000000
Our tier (1–4)22

Example monthly bills

WorkloadGemini 3.8 FlashGrok 4.3Cheaper
Chat / Q&A
10M in / 2M out per month
$15.00$17.50Gemini 3.8 Flash saves $2.50/mo (14%)
Coding
20M in / 5M out per month
$33.75$37.50Gemini 3.8 Flash saves $3.75/mo (10%)
Output-heavy (reasoning, long answers)
10M in / 10M out per month
$45.00$37.50Grok 4.3 saves $7.50/mo (17%)

Fine print

Cost only, not quality. “Tier” is our rough capability judgment, not a benchmark, and different tokenizers count the same text differently. Reasoning models may bill extra thinking tokens as output. Official sources: Google, xAI.

See all models on the full price table, the Google and xAI pricing pages, or try the savings calculator with your own numbers.

Weekly "AI price drops" email

Placeholder only — this form collects nothing.