Provider pricing
xAI AI API pricing
xAI has 30 priced models in the public snapshot. For 1,000 input and 500 output tokens, Grok Image has the lowest recorded request cost at $0.000105, with $0.07 input and $0.07 output per million tokens.
Best for
Teams building coding agents, long-running knowledge workflows, multimodal tools, or products using X platform data.
Strengths
- Grok 4.7 targets frontier coding, agentic tasks, and knowledge work
- 500K context with text and image input
- Cached input costs 75% less than standard input
- Real-time data access via X platform integration
Tracked xAI models
| Model | Input $/M | Output $/M | Context | Tier | Best for |
|---|---|---|---|---|---|
| Grok 4.7 | $2.00 | $6.00 | 500,000 | Flagship | Frontier coding, agentic tasks, knowledge work, and multimodal reasoning |
| Grok 4.6 | $2.00 | $6.00 | 2,000,000 | Flagship | Long-running agents, agentic coding and visual/interactive builds |
| Grok 4.6 Fast | $4.00 | $12.00 | 2,000,000 | Premium | Latency-optimized Grok 4.6 for interactive agents |
| Grok 4 | $3.00 | $15.00 | 256,000 | Flagship | Frontier reasoning and coding |
| Grok 4 Heavy | $6.00 | $30.00 | 256,000 | Premium | Multi-agent parallel reasoning — top scores on ARC-AGI and HLE |
| Grok 4 Mini | $0.300 | $0.900 | 256,000 | Budget | Cheaper Grok 4 distilled for high-throughput chat and tools |
| Grok 4.1 | $2.00 | $10.00 | 2,000,000 | Flagship | Long-context flagship with native tool use and search |
| Grok 4.1 Fast | $0.200 | $0.500 | 2,000,000 | Budget | Ultra-cheap with massive 2M context |
| Grok 4.1 Mini | $0.100 | $0.300 | 1,000,000 | Budget | Smallest 4.1 variant — RAG and high-volume classification |
| Grok 3 | $3.00 | $15.00 | 131,072 | Flagship | Previous-gen flagship — strong general reasoning |
| Grok 3 Mini | $0.300 | $0.500 | 131,072 | Budget | Budget Grok 3 for chat and lightweight agents |
| Grok 3 Reasoning | $5.00 | $25.00 | 131,072 | Premium | Extended chain-of-thought reasoning variant of Grok 3 |
| Grok 2 Vision | $2.00 | $10.00 | 32,768 | Mid-tier | Multimodal Grok 2 — charts, documents, and screenshots |
| Grok Code Fast 1 | $0.200 | $1.50 | 256,000 | Mid-tier | Coding-specialized Grok for IDEs and agentic dev |
| Grok Voice | $1.00 | $4.00 | 32,000 | Mid-tier | Realtime voice-mode model for spoken interactions |
| Grok Image | $0.070 | $0.070 | 0 | Open Source | Aurora image generation — photorealistic text-to-image |
| Grok 2 | $2.00 | $10.00 | 128,000 | Flagship | Previous-gen Grok with strong reasoning and search |
| Grok 1.5 | $1.00 | $5.00 | 128,000 | Mid-tier | Original Grok 1.5 — extended-context chat and reasoning |
| Grok 5 | $4.00 | $20.00 | 2,000,000 | Premium | Next-gen Grok flagship — agentic reasoning and native search |
| Grok 5 Mini | $0.400 | $1.50 | 1,000,000 | Mid-tier | Cheaper distilled Grok 5 for high-throughput chat and tools |
Last updated: · Source: xAI pricing · Methodology
Frequently asked questions
How much does the xAI API cost?
xAI has 30 priced models in the public snapshot. For 1,000 input and 500 output tokens, Grok Image has the lowest recorded request cost at $0.000105, with $0.07 input and $0.07 output per million tokens.
Which xAI model is cheapest?
Grok Image is the lowest-cost recorded model for the 1,000-input/500-output example. Prices are $0.07 input and $0.07 output per million tokens; different workloads may change the ranking.
Does xAI have cached or batch prices?
Cached input: $0.0175 per million tokens under the existing provider cache rules. Batch: not recorded in this dataset. Eligibility and cache-write charges depend on the provider; these discounts are not automatically stacked.
How often are provider prices verified?
The live pricing table synchronizes stored model records daily; public file snapshots update when the site is rebuilt. Synchronization is not independent provider verification. Snapshot updated 2026-10-31; only explicit per-model dates are verification records.