Grok 4.7
xAI's flagship model for code and everything else, with configurable reasoning.
500k-token context. Free credits not listed on the models page. Checked 2026-10-14.
Quick start
Create an API key, store it in an environment variable, and send one small test request before wiring the model into your app.
Good and not so good
- Low output price for a flagship
- Configurable reasoning
- Knowledge cut-off May 2026
Use cases with Grok 4.7
Compare four AI models by asking each to build the same machine
One prompt, build a radial engine, went to Claude Opus 5.5, GPT-6 Astra, Gemini 4 Argon and Grok 4.7. Each built a different machine, which shows how differently the models interpret the same words.
Have Grok Bot search X for mentions of your products and feedback
A builder runs Grok Bot checks every 10 minutes for life admin, docs and price hunting, and uses it to search X for anyone mentioning the products he is working on and to collect feedback. He keeps Opus in Claude Code for coding and chats in Grok because it can browse X.
Compare what four models cost to one-shot the same dam-break simulation
Same prompt, one shot, four models: Opus 5.5 max spent $55.59 over 2h09m, GPT-6 Astra max $7.48 in 35m, Grok 4.7 xhigh about $5 in 1h35m and Gemini 4 Argon high about $3 in 41m.