xAI pricing

Grok API pricing and cost calculator

Compare current Grok model rates from the live catalog and calculate a consistent token workload. Check xAI's official documentation for long-context tiers, cached input, tools, and priority-processing rules.

Current priced models

36

Lowest listed input

$1.00

Grok Build 0.1

Lowest listed output

$2.00

Grok Build 0.1

Latest catalog verification

Aug 30, 2026

Current catalog

Current Grok API model prices

Rates are first-party USD list prices per one million tokens. Current models are ordered by catalog relevance, not by price alone. Marketplace-only prices are excluded so they cannot be mistaken for the model creator's API rate.

Swipe the table sideways to see context and availability.

ModelInput / 1MOutput / 1MContextProvider listings
Grok 4.6

Released 2026-08-12

$2.00$6.00500K5
Grok 4.5

Released 2026-07-08

$2.00$6.00500K2
Grok 4.3

Released 2026-04-30

$1.25$2.501.0M4
Grok 4.20

Released 2026-03-31

$1.25$2.502.0M2
Grok Build 0.1

Released 2026-05-20

$1.00$2.00256K3
Grok 4

Released 2025-07-09

$1.25$2.50131K5
Grok 3

Released 2025-06-10

$1.25$2.50131K4
Grok 3 Mini

Released 2025-06-10

$1.25$2.50131K4
Grok 3 Beta

Released 2025-04-09

$1.25$2.50131K2
Grok 3 Mini Beta

Released 2025-04-09

$1.25$2.50131K2
Grok 4 20 Non Reasoning$1.25$2.502.0M4
Grok 4 20 Reasoning$1.25$2.502.0M4
Grok 2$2.00$10.00131K2
Grok 2 Vision$2.00$10.0033K2
Grok Code Fast 1

Released 2025-08-26

$1.00$2.00131K3
Grok Beta$5.00$15.00131K1
Grok Vision Beta$5.00$15.008K1
Grok 2 1212$2.00$10.00131K1
Grok 2 Vision 1212$2.00$10.0033K1
Grok 4 0709$1.25$2.50256K1

Estimate

Pricing calculator

Select a provider and model, enter your token counts, and get an instant cost estimate.

Configure

Step 4 of 4 · Tokens

Provider
Family
Model

Listed rates

Grok 4.6

Estimated run

$0.0050

From 1,000 in · 500 out

Input / 1M

$2.00

Output / 1M

$6.00

Prices are official list rates per million tokens.

Full pricing detail

Cost guidance

How to compare Grok API costs

01

Separate standard input, cached input, and generated output when estimating a Grok workload.

02

Long-context requests may use a different pricing tier, so verify the current threshold before modeling large prompts.

03

Priority processing and server-side tools can add costs that are not captured by base token rates alone.

Questions

Grok API pricing FAQ

How do I estimate Grok API cost?

Multiply the expected input and output token counts by the corresponding per-token rates, then include any long-context, priority-processing, or tool charges that apply.

Does Grok long-context usage cost the same as shorter requests?

Not always. xAI may publish separate long-context tiers, so verify the threshold and rates for the model you plan to use.