OpenAI (58) Qwen (41) Google (30) Mistral (20) Z.ai (17) Anthropic (15) DeepSeek (14) Meta (9) Meta Llama (8) Moonshot AI (8) Tencent (8) xAI (7) Aion Labs (6) ByteDance Seed (6) NVIDIA (6) Amazon (5) Cohere (5) Perplexity (5) Xiaomi (5) Inclusionai (4) MiniMax (4) Sakana (4)
Prices are USD per 1 million tokens. Updated 2026-11-09. Want a number for your own prompt? Use the token counter and cost calculator.
xAI API pricing per 1M tokens
| Model | Context | Input $/1M | Output $/1M | Cached input $/1M | Images in |
|---|---|---|---|---|---|
| Grok 4.7x-ai/grok-4.7 | 500K | $2 | $6 | $0.5 | Yes |
| Grok 4.6x-ai/grok-4.6 | 500K | $2 | $6 | $0.5 | Yes |
| Grok 4.5x-ai/grok-4.5 | 500K | $2 | $6 | $0.3 | Yes |
| Grok Build 0.1x-ai/grok-build-0.1 | 256K | $1 | $2 | $0.2 | Yes |
| Grok 4.3x-ai/grok-4.3 | 1M | $1.25 | $2.5 | $0.2 | Yes |
| Grok 4.20 Multi-Agentx-ai/grok-4.20-multi-agent | 2M | $1.25 | $2.5 | $0.2 | Yes |
| Grok 4.20x-ai/grok-4.20 | 2M | $1.25 | $2.5 | $0.2 | Yes |
Quick facts
- 7 xAI models listed.
- Lowest combined input+output price: Grok Build 0.1 at $1 input and $2 output per 1M tokens.
- Prices change often; this page is regenerated automatically every day.