grok-4.7
xAI · call it through the same base URL — no per-vendor setup.
| Vendor | xAI |
|---|---|
| Context window | — |
| Max output | — |
| Input | $2.67 / 1M tokens |
| Output | $8 / 1M tokens |
| Cache read | $0.67 / 1M tokens |
Call it
curl https://api.tokrouter.dev/v1/chat/completions \
-H "Authorization: Bearer $TOKROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4.7",
"messages": [{"role": "user", "content": "Hello"}]
}'The equivalent OpenAI Python SDK snippet is in Quickstart.
Prices are regenerated from the pricing catalog at build time; the authoritative quote is www.tokrouter.dev/pricing.