xAI model
Grok 4.7 API pricing
No channel can serve Grok 4.7 right now, so it has no live price. Its page stays up, and it's back on sale as soon as a channel is. Call it with the same key as every other model here, through the OpenAI Chat Completions API.
Prices as of Nov 25, 11:26 PM UTC
Price per 1M tokens
| Tokens | xAI's price | Our price |
|---|---|---|
| Input | xAI's price: $2.00 | — |
| Output | xAI's price: $6.00 | — |
| Cache read | — | — |
| Cache write | — | — |
Our price is the cheapest channel that can serve Grok 4.7 now. Prices follow our costs, so they can change from day to day, and each request is billed at the price of the channel that served it.
Channels
Each channel is a separate route to Grok 4.7, with its own price. Stable channels are backed by the provider's service level agreement, and Best effort ones are cheaper but can slow down or stop without notice. Routing tries the cheapest channel that's doing well first, or the stable ones first on a key set to Stable first, and a key's max price skips any channel above it.
- grok-aBest effortResting90% off
- Input
- $0.187
- Output
- $0.56
- Cache read
- $0.187
- Cache write
- $0.187
| Channel | Input | Output | Cache read | Cache write | Discount |
|---|---|---|---|---|---|
| grok-aBest effortResting | $0.187 | $0.56 | $0.187 | $0.187 | 90% |
Speed and success figures appear once a channel has served requests in the last 24 hours.
Context window and limits
- Model id
- grok-4.7
- Made by
- xAI
- Context window
- 500,000 tokens
- Max output per request
- 128,000 tokens
- APIs
- OpenAI Chat Completions /v1/chat/completions
- Supports
- tool calls, image input, JSON schema output, reasoning
- Status
- Not on sale right now
A 500,000-token context window. xAI sets no output cap; requests here default to 128,000 output tokens. max_tokens limits only the visible answer: reasoning tokens come on top of it.
Use Grok 4.7
Change the base URL and the key in the SDK you already use. The model id is grok-4.7.
curl https://api.slashmodel.com/v1/chat/completions \ -H "Authorization: Bearer $SLASHMODEL_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "grok-4.7", "messages": [{"role": "user", "content": "Hello!"}] }'One key for every model here.
Top up from $10, change one URL, and pay only for the tokens you use.