Grok 4.7 runs at 85% off on API Token Router.
Xai: Grok 4.7
Grok 4.7 is SpaceXAI's flagship model for coding, agentic tasks, and knowledge work, succeeding Grok 4.6.
Modalities
Price (in / out)
85% off$0.3 / $0.9$2 / $6per 1M
Context-tiered pricingContext
500K
Released
Sep 21, 2026
Call the Grok 4.7 API
Model ID grok-4.7 · replace <ATR_API_KEY> with your API key
OpenAI-compatible
curl https://api.apitokenrouter.com/v1/chat/completions \
-H "Authorization: Bearer <ATR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"model":"grok-4.7","messages":[{"role":"user","content":"Hello"}]}'Providers
API Token Router routes by health and cost within the discount range and provider list you configured. When one returns an error we fall through to the next best — you don't pick a provider in the request. Configure discount range
Need a specific set of providers?
| Provider | Context | Input | Output | Cache | Latency | Throughput | Uptime | No training |
|---|---|---|---|---|---|---|---|---|
| xAI | 500K | $2$0.3Context-tiered pricing | $6$0.9 | $0.5$0.075 | — | — | — | No training |
Uptime
API Token Router continuously probes every provider and falls through to the next best one on error.
Uptime (24h)
—
Uptime (3d)
—
Uptime, last 3 days
—
Uptime, last 24 hours
One line per upstream provider, taking the best success rate among that provider's channels. The API Token Router line counts only the final attempt of each request — the end-to-end result after all fallbacks.
AVAILABILITY · LAST 24H · API TOKEN ROUTER GATEWAY
Data security
API Token Router does not use your data to train models.
For the full data-security policy, learn more.
Need to pick your own providers? .
Quickstart
from openai import OpenAI
client = OpenAI(
base_url="https://api.apitokenrouter.com/v1", # the only line that changes
api_key="<ATR_API_KEY>",
)
response = client.chat.completions.create(
model="grok-4.7",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)Endpoint: https://api.apitokenrouter.com/v1
About Grok 4.7
Grok 4.7 is a xAI model. On API Token Router its model ID is grok-4.7, and the same API Token Router API key works for it and every other model. Setup steps are in the API docs.
- Model ID
grok-4.7- Provider
- xAI
- Context window
- 500K tokens
- Official list price
- $2 input / $6 output per 1M tokens
- Released
- Sep 21, 2026
More xAI models
Similar-priced models
Use the Grok 4.7 API
Point the base URL at API Token Router and use grok-4.7 as the model name; nothing else changes. Python example:
from openai import OpenAI
client = OpenAI(
base_url="https://api.apitokenrouter.com/v1", # the only line that changes
api_key="<ATR_API_KEY>",
)
response = client.chat.completions.create(
model="grok-4.7",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)Use Grok 4.7 in OpenCode
OpenCode
OpenCode → Settings → Providers → Custom provider
Provider ID: apitokenrouter
Base URL: https://api.apitokenrouter.com/v1
API key: <your API Token Router API key>
Model ID: grok-4.7Grok 4.7 FAQ
- What is the Grok 4.7 API model ID?
- The model ID is grok-4.7. The OpenAI-compatible base URL is https://api.apitokenrouter.com/v1.
- How do I get a Grok 4.7 API key?
- You don't need a xAI account. Sign up for API Token Router, create a key (sk-atr-…) under API Keys in the dashboard, top up from $5, and call grok-4.7 — the same key also works for every other model. Create an API key.
- How large is the Grok 4.7 context window?
- Grok 4.7 has a 500K-token context window.
- How much does the Grok 4.7 API cost?
- The official list price of Grok 4.7 is $2 input / $6 output per 1M tokens. API Token Router bills per use with no monthly fee; see the price table on this page for the current discounted price.
- How do I pay for the Grok 4.7 API?
- New accounts start with a $0 balance. Top up from $5 by card in the API Token Router dashboard, then usage is deducted per request, with no subscription. Top up.
- Can I use Grok 4.7 from Russia?
- Yes. API Token Router works from Russia without a VPN, and the Russian version of the site lets you pay in rubles with SBP, SberPay, T-Bank or YooMoney. Grok 4.7 на русском.
- Can I use Grok 4.7 in Cursor, Cline or Cherry Studio?
- Yes. Choose the OpenAI-compatible provider, set the base URL to https://api.apitokenrouter.com/v1, use your API Token Router API key, and enter grok-4.7 as the model name.
- Can I pay for the Grok 4.7 API with USDT?
- Yes. In the top-up dialog, click "Pay with crypto" and send USDT, USDC or ETH from Binance, OKX or any wallet. The minimum is $5 and no browser extension is needed. Step by step: how to pay for the API with USDT.