xAI · Flagship
Grok 4.7 API pricing and specs
xAI's flagship reasoning model, with effort settings from low to xhigh and encrypted reasoning returned by the Responses API.
$2
$0.50
$6
There is no Batch API for this model. A faster variant at twice the price is offered only inside Cursor and xAI's own coding tool, not in the public API.
Prompts over 200K tokens are billed at $4 input, $1 cached and $12 output per million, and the higher rate applies to the whole request.
Spec sheet
- API model string
grok-4.7- Provider
- xAI
- Context
- 500K tokens
- Max output
- —
- Released
- September 21, 2026
- Batch API
- No batch discount listed
- Documented agent features
- Tool callingStructured outputBuilt-in web searchAdjustable reasoning
What a task costs
Four reference workloads priced at this model's list rates, with caching applied after the first call. Your numbers will differ; the calculator lets you change every assumption.
| Workload | Per task | Per 1,000 tasks |
|---|---|---|
| Support bot | $0.052 | $52 |
| Coding agent | $2.68 | $2,684 |
| Browser agent | $1.61 | $1,607 |
| Research agent | $1.38 | $1,380 |
Other xAI models
Similar cost elsewhere
Models from other providers whose cost on the 30-step coding workload is closest to this one.