AI models / xAI
Grok 4.7
xAI's most capable model, recommended for code and chat.
Specs and pricing
| Provider | xAI |
|---|---|
| API model ID | grok-4.7 |
| API price (standard) | $2.00 in / $6.00 out per 1M tokens |
| Pricing note | Prompts under 200K tokens; $4.00 in / $12.00 out at 200K+. |
| Context window | 500K tokens |
| Max output | Not stated on the page we checked |
| Weights | Closed (API only) |
| Cached input | $0.50 / 1M |
| Knowledge cutoff | May 2026 |
Source: xAI models & pricing (checked 2026-10-15). Prices change often, so confirm on the provider's page before you commit.
Official page