4 models across 3 tiers

Grok API pricing in 2026

xAI has the Grok family across three tiers: flagship (Grok 4.6, Grok 4.5), mid-tier (Grok 4.3) and fast (Grok Build 0.1, the family's coding model and the cheapest Grok row on output). Two things make Grok price differently from the other three providers. First, cached input is quoted as an absolute rate per model rather than a family-wide discount, so the effective cache-read discount ranges from 75% on Grok 4.6 to 85% on Grok 4.5. Grok 4.5 is cheaper than Grok 4.6 on cache-heavy work despite identical list prices. Second, every Grok model re-rates the entire request at 2x once the prompt reaches 200,000 tokens, so long-context work costs double the headline rate. There is no cache-write surcharge.

Models

4

Cheapest input

$1.00/MTok

Cache discount

80% off

Max context

1,000K

All Grok models

ModelTierInput $/MTokOutput $/MTokContextBest taskReleased
Grok Build 0.1Fast / Budget$1.00$2.00256KNot benchmarkedMay 2026
Grok 4.3Mid-tier$1.25$2.501,000KNot benchmarkedMar 2026
Grok 4.6Flagship$2.00$6.00500KNot benchmarkedAug 2026
Grok 4.5Flagship$2.00$6.00500KNot benchmarkedJul 2026

Grok Build 0.1: xAI's coding-specialised model and the cheapest Grok row on output. Released in early access; xAI publishes release notes at month granularity only.

Grok 4.3: xAI publishes no release date for this model; dated to the March 4.20-generation launch whose pricing and 1M context window it shares. Priced from the live models table, which is what matters for costing traffic.

Grok 4.5: Same list price as Grok 4.6 but a cheaper cached rate ($0.30/MTok vs $0.50), so cache-heavy workloads are cheaper here than on 4.6. xAI publishes release notes at month granularity only; dated to the start of the month.

Grok cost by use case

Estimated cost per API call across common workloads, using default token counts for each use case.

Use case0.14.34.64.5
Code Generation$0.0100$0.0125$0.0280$0.0280
Unit Test Generation$0.0130$0.0163$0.0360$0.0360
SQL Generation$0.003500$0.004375$0.009000$0.009000
API Generation$0.0150$0.0187$0.0420$0.0420
Code Refactoring$0.0120$0.0150$0.0320$0.0320
Code Review$0.009000$0.0112$0.0220$0.0220
PR Review$0.0140$0.0175$0.0340$0.0340
Security Review$0.0110$0.0138$0.0270$0.0270
Bug Detection$0.009000$0.0112$0.0220$0.0220
Document Summarization$0.0120$0.0150$0.0260$0.0260
PDF Summarization$0.0180$0.0225$0.0390$0.0390
Meeting Notes$0.0120$0.0150$0.0280$0.0280
Email Summarization$0.004000$0.005000$0.009000$0.009000
Chatbot$0.004000$0.005000$0.0100$0.0100
RAG Pipeline$0.009000$0.0112$0.0210$0.0210
Customer Support Bot$0.005000$0.006250$0.0120$0.0120
FAQ Bot$0.003100$0.003875$0.007800$0.007800
Data Extraction$0.006000$0.007500$0.0140$0.0140
JSON Extraction$0.004600$0.005750$0.0108$0.0108
Invoice Parsing$0.003200$0.004000$0.007600$0.007600
Resume Parsing$0.004100$0.005125$0.009800$0.009800
Chain of Thought$0.0130$0.0163$0.0360$0.0360
Legal Analysis$0.0180$0.0225$0.0440$0.0440
Math Reasoning$0.007500$0.009375$0.0210$0.0210
Financial Analysis$0.0160$0.0200$0.0400$0.0400
Content Moderation$0.000700$0.000875$0.001600$0.001600
Sentiment Analysis$0.000700$0.000875$0.001600$0.001600
Categorization$0.001100$0.001375$0.002500$0.002500
Intent Detection$0.000500$0.000625$0.001200$0.001200
Copywriting$0.004500$0.005625$0.0130$0.0130
Blog Writing$0.0170$0.0213$0.0500$0.0500
Marketing Copy$0.006800$0.008500$0.0196$0.0196
Product Descriptions$0.003500$0.004375$0.0100$0.0100

Grok quality benchmarks by task

Confidence scores (0-100) across all task types. Higher is better.

Confidence scores are a third-party benchmark snapshot from week 29 of 2026. This snapshot is 8 weeks old, so treat the scores as directional and validate against your own evals.

Task0.14.34.64.5
Code Generation----
Code Review----
Summarization----
Q&A----
Extraction----
Reasoning----
Classification----
Creative Writing----

Recent Grok pricing changes

Grok 4.6 input launched

$2.00/MTok at launch

Aug 12, 2026

Grok 4.5 input launched

$2.00/MTok at launch

Jul 1, 2026

Grok Build 0.1 input launched

$1.00/MTok at launch

May 1, 2026

Grok 4.3 input launched

$1.25/MTok at launch

Mar 1, 2026

View full Grok pricing history

Track your Grok spend

See exactly how much you spend on Grok models and where you can save. Two-line wrapper install, no API keys shared.