Blog
Skip to main content

Day 0 Support: Grok 4.7

Misbah Syed
DevRel Engineer, LiteLLM
Mateo Wang
AI Engineer, LiteLLM
Kerry Lu
Software Engineer, LiteLLM

LiteLLM x Grok 4.7

LiteLLM supports grok-4.7 on day 0, on /chat/completions and /responses. It keeps Grok 4.6's prices, limits and capabilities.

SpaceXAI, the company formerly called xAI, built 4.7 and reports the model is better at checking its own work and holding long context. Against Grok 4.6, Terminal-Bench 4.0 goes from 20.3% to 38.0% and EEBench from 53.0% to 64.0%.

Pricing​

Per 1M tokens: $2.00 input, $0.50 cached, $6.00 output, identical to Grok 4.6. Every rate doubles past 200K input tokens, to $4.00, $1.00 and $12.00, so a long-context request costs twice what the headline suggests.

Usage​

from litellm import completion

response = completion(
model="xai/grok-4.7",
messages=[{"role": "user", "content": "Refactor this migration script."}],
reasoning_effort="xhigh", # low | medium | high (default) | xhigh
)

print(response.choices[0].message.content)

Pricing landed in PR #42264. Hit Reload Model Cost Map in the Admin UI, or POST /reload/model_cost_map, to pick it up without a redeploy on v1.76.0 and above.

Feedback​

Running Grok 4.7 through LiteLLM and hitting something unexpected? Share it on GitHub discussion #42287.

🚅
LiteLLM Enterprise
SSO/SAML, audit logs, spend tracking, multi-team management, and guardrails — built for production.
Learn more →