Grok 4.5 API Pricing
xAI · $2 per 1M input tokens · $6 per 1M output tokens · 500K context window · cached input $0.3/1M.
Tiered pricing — base tier shown (< 200k prompt tokens); long-context requests (≥ 200k) cost $4/$12 per MTok.
What real workloads cost
- 1K chatbot requests (600 in / 250 out): $2.70
- 1K RAG queries (3500 in / 400 out): $9.40
- 1M classification calls (400 in / 10 out): $860.00
Cheapest alternatives
| Model | Provider | Input $/1M | Output $/1M | Cached input $/1M | Context |
|---|---|---|---|---|---|
| Yi-Lightning | 01.AI | $0.14 | $0.14 | — | 16K |
| Grok 3 mini | xAI | $0.3 | $0.5 | — | 128K |
| GPT-4o mini | OpenAI | $0.15 | $0.6 | $0.075 | 128K |
| Gemini 2.5 Flash | $0.3 | $0.6 | $0.03 | 1000K | |
| DeepSeek-V4-Flash-Vision-Exp | DeepSeek | $0.22 | $0.66 | $0.007 | 1000K |
| DeepSeek-V4-Flash | DeepSeek | $0.22 | $0.66 | $0.007 | 1000K |