Models › xAI
grok-4.7 API pricing
$2.00 per 1M input tokens and $6.00 per 1M output tokens (prompts up to 200K tokens). Verified 2026-11-01 against the official price list.
Current prices
| Mode | Input | Output | Cache read | Context window |
|---|---|---|---|---|
| Standardprompts ≤ 200K tokens | $2.00 | $6.00 | $0.50 | 500K |
| Standardprompts > 200K tokens | $4.00 | $12.00 | $1.00 | — |
| Batch APIprompts ≤ 200K tokens | $1.60 | $4.80 | $0.40 | — |
| Batch APIprompts > 200K tokens | $3.20 | $9.60 | $0.80 | — |
| Priorityprompts ≤ 200K tokens | $4.00 | $12.00 | $1.00 | — |
| Priorityprompts > 200K tokens | $8.00 | $24.00 | $2.00 | — |
USD per 1M tokens.
Price history
- 2026-11-01 Cache read (Batch API, prompts ≤ 200K tokens): — → $0.40
- 2026-11-01 Cache read (Batch API, prompts > 200K tokens): — → $0.80
- 2026-11-01 Input (Batch API, prompts ≤ 200K tokens): — → $1.60
- 2026-11-01 Input (Batch API, prompts > 200K tokens): — → $3.20
- 2026-11-01 Output (Batch API, prompts ≤ 200K tokens): — → $4.80
- 2026-11-01 Output (Batch API, prompts > 200K tokens): — → $9.60
- 2026-10-09 Cache read (Priority, prompts ≤ 200K tokens): — → $1.00
- 2026-10-09 Cache read (Priority, prompts > 200K tokens): — → $2.00
- 2026-10-09 Cache read (Standard, prompts ≤ 200K tokens): — → $0.50
- 2026-10-09 Cache read (Standard, prompts > 200K tokens): — → $1.00
- 2026-10-09 Context window (Standard): — → 500K
- 2026-10-09 Input (Priority, prompts ≤ 200K tokens): — → $4.00
- 2026-10-09 Input (Priority, prompts > 200K tokens): — → $8.00
- 2026-10-09 Input (Standard, prompts ≤ 200K tokens): — → $2.00
- 2026-10-09 Input (Standard, prompts > 200K tokens): — → $4.00
- 2026-10-09 Output (Priority, prompts ≤ 200K tokens): — → $12.00
- 2026-10-09 Output (Priority, prompts > 200K tokens): — → $24.00
- 2026-10-09 Output (Standard, prompts ≤ 200K tokens): — → $6.00
- 2026-10-09 Output (Standard, prompts > 200K tokens): — → $12.00
Source
- https://docs.x.ai/developers/pricing — official xAI price list, last verified 2026-11-01