
xAI route
grok-4.7
Grok 4.7 API access.
xAI's 21 September 2026 flagship at $2 input and $6 output per 1M tokens, with 500K context and a 200K cliff that doubles every rate. On RouterPlex, cached prompt tokens bill at the full $2 input rate, and there is no Fast model ID. See the Grok 4.7 API pricing notes.
Input / 1M tokens
$2.00
Output / 1M tokens
$6.00
Context window
500K
Provider
xAI
Workload calculator
Put the token rate into context.
These examples apply the published input and output rates directly. Actual cost follows the exact tokens your client sends and the model returns.
This route is the 47th cheapest of 71 comparable text models and cheaper than 21 on the same key. Its context window ranks 55th of 71.
Short request
$0.026
10K input + 1K output
Agent turn
$0.26
100K input + 10K output
Exact token billing
No request minimum
One model ID change
OpenAI compatible
Long-context threshold
Rate changes after 200K.
Long input / 1M
$4.00
Long output / 1M
$12.00
2.0× more on input than the base rate. The threshold applies per request, not per conversation.
Cost neighbourhood
Nearby routes, same workload.
Every comparison uses the same 100K-input / 10K-output turn. Changing route is a one-line model ID edit.
Price does not measure task quality. For generation routes, see GPT Image 2.
First request
Route it in one call.
Use any OpenAI SDK or tool. Keep the request shape, point the base URL at RouterPlex, and set the model ID shown here.
Read the quickstartcurl https://api.routerplex.com/v1/chat/completions \-H "Authorization: Bearer $ROUTERPLEX_API_KEY" \-H "Content-Type: application/json" \-d '{"model": "grok-4.7","messages": [{"role": "user", "content": "Hello!"}]}'
Route notes
Questions before production traffic.
01How much does the Grok 4.7 API cost?+
Through RouterPlex, Grok 4.7 costs $2.00 per 1M input tokens and $6.00 per 1M output tokens — the vendor list price with 0% markup, billed per token from a prepaid balance you top up from $5. xAI list price. Base rate applies below 200K prompt tokens; prompts at or above 200K are billed at $4 input / $12 output per 1M tokens. Cached prompt tokens are billed at the full input rate for now: RouterPlex does not yet pass xAI's $0.50 cache-read tier through on this model.
02What does one Grok 4.7 agent turn cost?+
A 100K-token input with a 10K-token reply costs about $0.26 on Grok 4.7. That makes it the 47th cheapest of 71 comparable text models on RouterPlex, roughly 21.7× the cost of the cheapest option (Muse Spark 1.2 Contributor).
03What is a cheaper alternative to Grok 4.7?+
GLM-5.3 Abliterated from Zhipu is the closest cheaper model on RouterPlex — $0.24 per agent turn against $0.26 for Grok 4.7, at $2.00/1M input and $4.00/1M output. Both run on the same key and the same endpoint, so switching is a one-line model ID change.
04Is Grok 4.7 cheaper than Claude Sonnet 5?+
Yes. Per agent turn, Grok 4.7 costs about $0.26 against $0.30 for Claude Sonnet 5 — 13% less.
05What is the context window of Grok 4.7?+
Grok 4.7 supports a 500K token context window on RouterPlex, the 55th largest of the 71 models that publish one.
06Can I use Grok 4.7 with the OpenAI SDK?+
Yes. RouterPlex serves Grok 4.7 through an OpenAI-compatible endpoint at https://api.routerplex.com/v1 — point any OpenAI SDK or tool at that base URL with your RouterPlex key and set model to "grok-4.7".
Provider family
More from xAI.
Deploy this route
Put Grok 4.7 behind one key.
Top up from $5 with no subscription required.