Grok 4.7 API
xAI's newest Grok for coding, agents and knowledge work
About this model
Grok 4.7 is an xAI model released in September 2026 as the successor to Grok 4.6. xAI’s release notes describe it as its frontier model for coding, agentic tasks and knowledge work. It accepts text and images and answers in text, with configurable reasoning effort (low, medium, high or xhigh) according to xAI’s documentation.
Pick 4.7 when you want the latest model in the 4.x line. Compared with Grok 4.6, xAI lists the same context, input types and reasoning levels; the documented difference is that on the Responses API 4.7 always returns encrypted reasoning content. Grok 4.5 is the earlier July release.
Limits: in this catalog the context window is 256,000 tokens and image input is supported; output is text only.
Use cases
- Agentic coding and tool-driven workflows
- Analysis of long documents and screenshots
- Everyday knowledge work and drafting
Input and output
- Input
- Text, images
- Output
- Text
Developer
- Developer
- xAI
- Type
- Conversation
- Context
- 256,000 tokens
- Capabilities
- Image input
Grok 4.7 request example
Use https://gatelum.com/v1 as the base URL and pass x-ai/grok-4.7 in the model field. You create the key in your account after signing up.
curl --silent --show-error --fail-with-body \
--header 'Authorization: Bearer glt_YOUR_KEY' \
'https://gatelum.com/v1/chat/completions' \
--header "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"model": "x-ai/grok-4.7",
"messages": [
{
"role": "user",
"content": "Hi! Tell me about yourself in two sentences."
}
]
}
JSONClaude Code and Anthropic-protocol clients
For clients using the Anthropic protocol, point the address at ANTHROPIC_BASE_URL=https://gatelum.com with no /v1. The model ID does not change.
export ANTHROPIC_BASE_URL=https://gatelum.com
export ANTHROPIC_AUTH_TOKEN=glt_YOUR_KEY
export ANTHROPIC_MODEL=x-ai/grok-4.7
claudeWhere to use Grok 4.7
Guides with step-by-step instructions for the tools that support this model: