Pricing Guide · Updated April 2026

Grok API Pricing 2026:
Every xAI Model, Cost Calculator & How to Save 50%

xAI's Grok API offers some of the most competitive pricing for high-performance models. This guide covers every Grok model, real pricing per token, and how to cut your Grok API bill in half using CheapLLM.

Save 50% on Grok API — Start Free Trial

How Does Grok API Pricing Work in 2026?

xAI charges for the Grok API on a per-token basis, separately for input (prompt) and output (completion) tokens. One token is approximately 4 characters of English text. A typical 500-word prompt is roughly 700 tokens.

Pricing is denominated per 1 million tokens. At $3.00/1M input tokens for Grok 3, sending 1,000 prompts of 500 tokens each costs approximately $1.50 in input tokens alone.

CheapLLM reduces this by 50% by routing your requests through discounted provider tiers. You use your existing xAI API key — CheapLLM handles the optimization.

Grok API Pricing for Every Model

ModelTierContextInput / 1MOutput / 1MWith CheapLLM
Grok 3Flagship131k$3.00$15.00$1.50 / $7.50
Grok 3 FastFast131k$5.00$25.00$2.50 / $12.50
Grok 3 MiniMini131k$0.30$0.50$0.15 / $0.25
Grok 3 Mini FastMini Fast131k$0.60$4.00$0.30 / $2.00
Grok 2 VisionVision32k$2.00$10.00$1.00 / $5.00
Grok 2 Image GenImageN/A$0.07/img$0.04/img

All prices in USD. CheapLLM prices reflect ~50% savings via optimized routing. Prices subject to change.

Grok 3 vs Grok 3 Mini: Which Should You Use?

Grok 3

xAI's flagship model. Best for complex reasoning, analysis, and tasks where quality is critical.

Input$3.00/1M
Output$15.00/1M
With CheapLLM$1.50 / $7.50

Grok 3 Mini Recommended for most

10x cheaper than Grok 3 with surprisingly strong performance. Best for classification, summarization, and structured output tasks.

Input$0.30/1M
Output$0.50/1M
With CheapLLM$0.15 / $0.25

Grok vs OpenAI vs Claude vs Mistral

ModelProviderInput / 1MOutput / 1M
Grok 3 MinixAI$0.30$0.50
GPT-4o MiniOpenAI$0.15$0.60
Claude Haiku 4.5Anthropic$0.08$0.25
Mistral SmallMistral$0.10$0.30
Grok 3xAI$3.00$15.00
GPT-4oOpenAI$2.50$10.00
Claude Sonnet 4.6Anthropic$3.00$15.00
Mistral LargeMistral$2.00$6.00

Save 50% on Every Grok API Request

CheapLLM routes your xAI requests through discounted infrastructure tiers, cutting costs by 50% without changing your code. You get the same Grok model, the same response quality, the same latency — just half the price.

$200
Monthly spend at full price
on Grok 3 Mini
$9
CheapLLM subscription
flat per month
$91
Net monthly savings
every month
Start 14-Day Free Trial

Grok API Pricing FAQ

How much does the Grok API cost in 2026?

Grok 3 costs $3.00/1M input tokens and $15.00/1M output tokens. Grok 3 Mini is much cheaper at $0.30/$0.50 per 1M tokens. CheapLLM lets you access these models at 50% off the standard rate.

How does Grok compare to GPT-4o and Claude?

Grok 3 Mini is significantly cheaper than GPT-4o ($0.30 vs $2.50 input) and competitive with Claude Haiku. For high-volume tasks, Grok 3 Mini offers excellent value. CheapLLM supports all three providers through one API.

What is the cheapest Grok model?

Grok 3 Mini at $0.30/1M input and $0.50/1M output tokens is the most cost-effective. With CheapLLM you get 50% off, bringing it to $0.15/$0.25 per 1M tokens.

Does Grok have a free tier?

xAI offers a free tier with limited rate limits for testing. For production workloads, you need a paid API key. CheapLLM works with your existing xAI API key.

How does CheapLLM reduce Grok API costs?

CheapLLM uses provider-level discount pricing tiers that are not exposed in standard API access. You bring your own xAI key, and our routing automatically uses the most cost-effective path for your requests.

Can I switch between Grok and other providers?

Yes. CheapLLM gives you one unified API endpoint supporting xAI Grok, OpenAI, Anthropic, Mistral, Google, and Together AI. Switch models with a single parameter change.

Does Grok support image generation?

Yes. Grok 2 Image Gen is available at $0.07 per image. CheapLLM supports image generation models alongside text models through the same interface.

More Pricing Guides