Loading…
AI models / xAI
xAI's most capable model, recommended for code and chat.
| 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 |
Sources: xAI models, xAI API pricing (checked 2026-10-26). Prices change often, so confirm on the provider's page before you commit.
Official pagexAI's coding model for agentic software engineering and workflow tasks. It reached end of life on November 19, 2026 and is no longer served on the API.
$1.00 in / $2.00 out per 1M tokens
Context: 256K tokens
Lower-priced xAI model with a 1M-token context window.
$1.25 in / $2.50 out per 1M tokens
Context: 1M tokens