Grok 4.6 API

Grok 4.6: xAI's frontier model for coding and agentic tasks

x-ai/grok-4.6
xAIConversation

About this model

Grok 4.6 is an August 2026 release from xAI, described in its release notes as its frontier model for coding, agentic tasks and knowledge work. xAI documents text and image input, text-only output and four reasoning levels (low, medium, high, xhigh).

It sits between Grok 4.5 (July) and Grok 4.7 (September) in xAI’s lineup. xAI lists the same specifications for 4.6 and 4.7, so choose 4.6 for continuity with existing prompts and 4.7 when you want the newest model.

Limits: in this catalog the context window is 256,000 tokens and image input is supported.

Use cases

  • Coding and agentic tasks
  • Reading screenshots and diagrams
  • Knowledge work and analysis

Input and output

Input
Text, images
Output
Text
Developer
xAI
Type
Conversation
Context
256,000 tokens
Capabilities
Image input

Grok 4.6 request example

Use https://gatelum.com/v1 as the base URL and pass x-ai/grok-4.6 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.6",
  "messages": [
    {
      "role": "user",
      "content": "Hi! Tell me about yourself in two sentences."
    }
  ]
}
JSON
Claude 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.

macOS / Linux
export ANTHROPIC_BASE_URL=https://gatelum.com
export ANTHROPIC_AUTH_TOKEN=glt_YOUR_KEY
export ANTHROPIC_MODEL=x-ai/grok-4.6
claude

Where to use Grok 4.6

Guides with step-by-step instructions for the tools that support this model: