xAIPopular

Grok 4.6

xAI's current frontier model — its own docs' default pick for code.

Grok 4.6 keeps the 1.5T foundation of 4.5 and spends the gains on post-training, which is why xAI's docs steer everything — code included — at it. Same 500K window and the same vendor rate as 4.5, with live web search available on the route.

Best for

CodingAgentsResearch

Strengths

  • Frontier reasoning
  • Live web knowledge
  • 500K-token context

Use Grok 4.6 via AnyModel

One OpenAI-compatible endpoint — just set the model id:

curl https://anymodel.org/v1/chat/completions \
  -H "Authorization: Bearer $ANYMODEL_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "xai/grok-4.6",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'