grok-4.7 API pricing variable pricing
grok-4.7 by xAI costs $2.00 per 1M input tokens and $6.00 per 1M output tokens (1M in + 1M out = $8.00).
- API model id
grok-4.7- Input / 1M
- $2.00
- Output / 1M
- $6.00
- Cached input / 1M
- $0.50
- Context window
- 500K
- Notes
- Prompts <200K tokens shown.
- Source
- https://docs.x.ai/docs/pricing
- Provider type
- First-party (HQ: US)
- Regions
- unknown
- EU data residency
- unknown — Not stated on the models/pricing page.
- Last verified
- 2026-11-30
- Added
- 2026-10-14
Variable pricing
The effective price of this model depends on the request. Figures above are the base (short-context / peak) tier.
- Depends on context length: Prompts >=200K tokens: $4 input / $1 cached / $12 output per 1M (all tokens in the request).
Cost estimate
| Provider | Model | Cost |
|---|---|---|
| xAI | grok-4.7 | $3.50 |
Uses standard list prices (no caching, batch or off-peak discounts). €, CHF and ₹ rows are priced in that currency by the provider and not converted, so compare them with care. ₹ rows also show ≈ USD at the RBI reference rate of ₹93.8579 per USD (2026-11-09).
Compare
Other xAI models
- grok-4.6variable pricing: $2.00 / $6.00
- grok-4.5variable pricing: $2.00 / $6.00
- grok-4.3variable pricing: $1.25 / $2.50
- grok-4.20-0309-reasoningvariable pricing: $1.25 / $2.50
- grok-4.20-0309-non-reasoningvariable pricing: $1.25 / $2.50
- grok-build-0.1variable pricing: $1.00 / $2.00