Back to Models

Grok 4.20

xaixai/grok-4.20-non-reasoning

How TheRouter serves this differently from the vendor

As the vendor operates it

xAI exposes grok-4.20-0309-non-reasoning as a native xAI API model with xAI pricing tiers, xAI rate limits, and the documented caveat that logprobs/top_logprobs are silently ignored for Grok 4.20 and newer.

On TheRouter

TheRouter serves the pinned xai/grok-4.20-non-reasoning route through its OpenAI-compatible chat endpoint with TheRouter pricing and routing metadata; unsupported media-generation, audio, and embeddings endpoints are not exposed for this model.

API guide

Chat completion

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "xai/grok-4.20-non-reasoning",
    "messages": [{"role": "user", "content": "Summarise the key points in the following document:"}]
  }'

Function calling

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "xai/grok-4.20-non-reasoning",
    "messages": [{"role": "user", "content": "Look up the order status for order #12345."}],
    "tools": [{"type": "function", "function": {"name": "get_order_status", "description": "Get order status by ID", "parameters": {"type": "object", "properties": {"order_id": {"type": "string"}}, "required": ["order_id"]}}}],
    "tool_choice": "auto"
  }'

Vision β€” image + text

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "xai/grok-4.20-non-reasoning",
    "messages": [{
      "role": "user",
      "content": [
        {"type": "image_url", "image_url": {"url": "https://therouter.ai/assets/vision-sample.png"}},
        {"type": "text", "text": "Extract all line items from this invoice as JSON."}
      ]
    }]
  }'
Fact ledger β€” every claim on this page traces here
sourceURLretrieved
Release date (public API)β€”β€”unknown
API model slug (pinned)docs.x.ai β†—2026-06-09verified
Reasoning modeβ€”β€”verified
Context windowdocs.x.ai β†—2026-06-09verified
Max completion tokensβ€”β€”verified
Input modalitiesdocs.x.ai β†—2026-06-09verified
Output modalitiesβ€”β€”verified
xAI API pricing (current)docs.x.ai β†—2026-06-09verified
Function calling / toolsβ€”β€”verified
Structured outputs (response_format)β€”β€”verified
logprobs / top_logprobsdocs.x.ai β†—2026-06-09verified
Knowledge cutoffβ€”β€”unknown
Licenseβ€”β€”verified
Rate limits (xAI API)docs.x.ai β†—2026-06-09verified
AA Intelligence Indexdocs.x.ai β†—2026-08-01unknown
AA Coding Indexdocs.x.ai β†—2026-08-01unknown
AA Agentic Indexdocs.x.ai β†—2026-08-01unknown
GPQA Diamonddocs.x.ai β†—2026-08-01unknown
HLE (Humanity's Last Exam)docs.x.ai β†—2026-08-01unknown
SciCodedocs.x.ai β†—2026-08-01unknown
τ²-Bench (Telecom)docs.x.ai β†—2026-08-01unknown
IFBench (Instruction Following)docs.x.ai β†—2026-08-01unknown
AA-LCR (Long-Context Reasoning)docs.x.ai β†—2026-08-01unknown
TerminalBench Harddocs.x.ai β†—2026-08-01unknown
Grok 4.20 Beta launches with four API variants including non-reasoning modegrokipedia.com β†—2026-06-09verified
Help & contact