Grok 4.7 API pricing
$0.60 in, $1.80 out per million tokens, 70% under xAI's list price.
grok-4.7managed routeOpenAI SDK
Price · per million tokens, USD
| Tokens | xAI list price | UplinkSwitch | Saving |
|---|---|---|---|
| Input | $2.00 | $0.60 | -70% |
| Cached input | $0.50 | $0.15 | -70% |
| Output | $6.00 | $1.80 | -70% |
List price: xAI's published rate, read October 2026. Same price on every host.
Real-model check: Same fingerprint since Oct 12
Grok 4.7 specs
- Context window
- 500,000 tokens
- Input
- text and image
- Released
- September 21, 2026
Grok 4.7 API · base URL and key
Python · OpenAI SDK
from openai import OpenAI
client = OpenAI(
base_url="https://api.uplinkswitch.com/v1",
api_key="sk-uplink-live-...",
)
completion = client.chat.completions.create(
model="grok-4.7",
messages=[{"role": "user", "content": "Summarize this in one line."}],
)
print(completion.choices[0].message.content)TypeScript · OpenAI SDK
import OpenAI from 'openai';
const client = new OpenAI({
baseURL: 'https://api.uplinkswitch.com/v1',
apiKey: 'sk-uplink-live-...',
});
const completion = await client.chat.completions.create({
model: 'grok-4.7',
messages: [{ role: 'user', content: 'Summarize this in one line.' }],
});
console.log(completion.choices[0].message.content);curl
curl https://api.uplinkswitch.com/v1/chat/completions \
-H "authorization: Bearer sk-uplink-live-..." \
-H "content-type: application/json" \
-d '{"model":"grok-4.7","messages":[{"role":"user","content":"Hello"}]}'What would it cost? · paste a prompt, priced before you send it
Input is counted at about 4 characters per token.
Cheapest first. A real request is billed on the provider's own token count. Same estimate as JSON: POST https://api.uplinkswitch.com/v1/estimate, no key needed.
More from xAI
Grok 4.7 questions
- How much does the Grok 4.7 API cost?
- $0.60 per million input tokens and $1.80 per million output tokens, with cached input at $0.15. xAI's list price is $2.00 and $6.00, so this is 70% under xAI's list price.
- Is Grok 4.7 free?
- It is pay as you go: prepaid credit from $10, with no subscription or monthly fee, billed per token. A 1,000-token prompt with a 500-token reply costs about $0.0015.
- What is the Grok 4.7 context window?
- Grok 4.7 has a 500,000-token context window. It takes text and image input.
- What is the Grok 4.7 model id?
- grok-4.7. Send it as the model through the OpenAI SDK with base URL https://api.uplinkswitch.com/v1.
- Is it the real Grok 4.7?
- Every day each model gets the same test prompt, and a model always counts that prompt the same way; a swapped one would not. Grok 4.7's latest result: Same fingerprint since Oct 12.