XAI GROK / TEXT
Grok 4.7 API pricing
From $0.09 in / $0.26 out per 1M tokens
Grok 4.7 costs $0.09 per 1M input tokens and $0.26 per 1M output tokens (cached input $0.03). Other context tiers are listed in the price table. Call it with model ID grok-4.7 at https://api.outrun.to/v1 using one prepaid Outrun key. Prices as of October 30, 2026.
USD / 1M TOKENS
How much does Grok 4.7 cost per 1M tokens?
up to 200k tokens
| Token type | List price | Outrun | Below list |
|---|---|---|---|
| Input | $0.09 | 95% | |
| Cached input | $0.03 | ||
| Output | $0.26 | 95% |
over 200k tokens
| Token type | Outrun |
|---|---|
| Input | $0.17 |
| Cached input | $0.05 |
| Output | $0.51 |
Billed prices, rounded up to the cent. Prices as of October 30, 2026.
xAI list price source ↗- Context window
- 500,000 tokens
- Input
- Text + images
What is Grok 4.7?
Grok 4.7 is a text model in the Outrun catalog. Its developer describes it for coding, tool-based workflows and knowledge work. The standard rate is $0.09 in / $0.26 out per 1M tokens.
What are the Grok 4.7 model details?
| Model detail | Value |
|---|---|
| Developer | xAI |
| Kind | Text |
| Developer context | 500,000 tokens |
| Developer input | Text, Images |
| Released | 2026-09-21 |
How do I call Grok 4.7?
Use your Outrun key and the exact model ID. Requests use prepaid USD credit.
curl https://api.outrun.to/v1/chat/completions \
-H "Authorization: Bearer $OUTRUN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4.7",
"messages": [
{
"role": "user",
"content": "Hello!"
}
],
"max_tokens": 8192
}'import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.outrun.to/v1",
api_key=os.environ["OUTRUN_API_KEY"],
)
reply = client.chat.completions.create(
model="grok-4.7",
messages=[{"role": "user", "content": "Hello!"}],
max_tokens=8192,
)
print(reply.choices[0].message.content)Which tools work with Grok 4.7?
Any client that accepts an OpenAI-compatible base URL and a model ID can use grok-4.7. Setup guides: Cline (OpenAI Compatible), OpenCode, SillyTavern, LiteLLM.
Use these setup values for this model ID. Recommended output settings can be lower than the route maximum.
| Set this value | Value |
|---|---|
| API format | OpenAI compatible |
| Base URL | https://api.outrun.to/v1 |
| Model ID | grok-4.7 |
| Context window | 500,000 |
| Max output setting | 8,192 |
| Temperature | 1 |
| Streaming | Yes |
| Image support | Yes |
| R1 format | No |
| Include max tokens | Yes |
| Reasoning override | No |
| Prompt caching setting | No |
| Capability | Supported |
|---|---|
| Tool calling | Yes |
| Streaming | Yes |
| Reasoning | Yes |
| Structured output | Yes |
| Image input | Yes |
| Roo Code ready | Yes |
How does Grok 4.7 compare on cost?
| Model | Input / output | 1,000 chat turns |
|---|---|---|
| Grok 4.7This model | $0.09 / $0.26 | $0.16 |
Assumes 1,000 input + 300 output tokens per turn, repeated 1,000 times, at standard-tier rates without caching. Input / output shown per 1M tokens, rounded up to the cent.
Common questions about Grok 4.7
How much does the Grok 4.7 API cost?
Grok 4.7 costs $0.09 per 1M input tokens and $0.26 per 1M output tokens (cached input $0.03). Other context tiers are listed in the price table. Prices as of October 30, 2026.
What model ID and base URL do I use for Grok 4.7?
Use the model ID grok-4.7 with the base URL https://api.outrun.to/v1 and your Outrun API key.
Does Grok 4.7 accept images?
Yes. Grok 4.7 accepts text and image input.
Does Outrun store my prompts when I use Grok 4.7?
Outrun does not store your prompts, images or outputs unless you choose to save them.