All models

Grok 4.7

xAI
ChatReleased Sep 21, 2026
grok-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.
VisionReasoningTool callsStructured output
Input
$2.00
per 1M tokens
Output
$6.00
per 1M tokens
Cache read
$0.50
per 1M tokens
Context window
500K
tokens
Max output
500K
tokens

Pricing

USD per 1M tokens
Fee itemInput up to 199,999 tokensInput 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.

Every leading model. One API key.

Sign in, add credit and change one line of config. Pay for what you use, no subscription.

Get an API key