All models VisionReasoningTool callsStructured output
Grok 4.7
xAI
ChatReleased Sep 21, 2026grok-4.7
Grok 4.7 is more reliable than Grok 4.6 on long-running coding and knowledge work, at the same price and speed, with a 500K context window.
- Input
- $2.00
- Output
- $6.00
- Cache read
- $0.50
- Context window
- 500K
- Max output
- 500K
per 1M tokens
per 1M tokens
per 1M tokens
tokens
tokens
Pricing
USD per 1M tokens
| Fee item | Input up to 199,999 tokens | Input above 199,999 tokens |
|---|---|---|
| Input | $2.00 | $4.00 |
| Input, cache read | $0.50 | $1.00 |
| Output | $6.00 | $12.00 |
| Image input | $2.00 | $4.00 |
| Image input, cache read | $0.50 | $1.00 |
| Video input | $2.00 | $4.00 |
| Video input, cache read | $0.50 | $1.00 |
| Audio input | $2.00 | $4.00 |
| Audio input, cache read | $0.50 | $1.00 |
Prices are in USD. A request is billed at the prices in force when it is made.
Call it from your code
Keep the official SDK you already use: give it the LobeBase base URL and a LobeBase API key.
OpenAI API
Base URL
https://api.lobebase.com/v1
curl https://api.lobebase.com/v1/chat/completions \
-H "Authorization: Bearer $LOBEBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4.7",
"messages": [{ "role": "user", "content": "Hello" }]
}'Set LOBEBASE_API_KEY to your API key, then run the example.