Grok 4.7
Grok
Rates per million tokens
- Input
- $0.80
- List $2.00
- Cached input
- $0.30
- List $0.50
- Output
- $2.40
- List $6.00
- Under list
- 60%
- 80% input, 20% output, no cache
Reasoning tokens are billed once, as output. Cache hits are billed at the cached rate and shown on each receipt.
What requests cost
| Request | Input tokens | Output tokens | One request | 1,000 requests |
|---|---|---|---|---|
| Short chat reply | 1,000 | 300 | $0.0015 | $1.52 |
| Long document summary | 20,000 | 800 | $0.02 | $17.92 |
| Code generation | 4,000 | 2,000 | $0.0080 | $8.00 |
Without cache hits. Actual token counts come from the provider.
Use it
Any OpenAI-compatible client works: set the base URL and use grok-4.7 as the model.
from openai import OpenAI
client = OpenAI(base_url="https://api.tokencli.dev/v1", api_key="YOUR_KEY")
reply = client.chat.completions.create(
model="grok-4.7",
messages=[{"role": "user", "content": "Hello"}],
)
print(reply.choices[0].message.content)curl https://api.tokencli.dev/v1/chat/completions \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "grok-4.7", "messages": [{"role": "user", "content": "Hello"}]}'Last 24 hours
Not enough traffic in the last 24 hours to report a success rate. Status of all models