Get started
xAI
xAI

Grok 4.20

Grok 4.20 is a reasoning model by xAI with vision, function calling, structured output — designed for complex, multi-step problem solving where accuracy matters more than speed. It features an extended 2M token context window, suitable for processing long documents and complex conversations. Priced at $1.25 per million input tokens and $2.5 per million output tokens. Access Grok 4.20 through Inworld Router with OpenAI SDK compatibility, built-in failover, and intelligent routing across providers.
Function CallingReasoningResponse SchemaVisionreasoningCapabilityresponseFormatCapability

Step 1 — Create Router

curl --location 'https://api.inworld.ai/router/v1/routers' \ --header 'Authorization: Basic <your-api-key>' \ --header 'Content-Type: application/json' \ --data '{ "name": "compare-frontier-models", "defaultRoute": { "route_id": "default", "variants": [ { "variant": { "variant_id": "xai/grok-4.20-a", "model_id": "xai/grok-4.20" }, "weight": 33 }, { "variant": { "variant_id": "xai/grok-4.20-non-reasoning-b", "model_id": "xai/grok-4.20-non-reasoning" }, "weight": 33 }, { "variant": { "variant_id": "xai/grok-4.20-c", "model_id": "xai/grok-4.20" }, "weight": 34 } ] } }'

Step 2 — Chat Completion

curl --location 'https://api.inworld.ai/v1/chat/completions' \ --header 'Authorization: Basic <your-api-key>' \ --header 'Content-Type: application/json' \ --data '{ "model": "inworld/compare-frontier-models", "messages": [{"role": "user", "content": "Hello!"}] }'

Grok 4.20 pricing and providers

Access Grok 4.20 through xAI via Inworld Router or Realtime API. By using the AI provider(s) below you acknowledge you reviewed and agree to their terms listed in the Legal section under the AI provider's name.
CapabilitiesInput modalitiesOutput modalities
xAIxAI2M$1.25$2.50+3

Other xAI models available through Inworld

Compare Grok 4.20 with other xAI models available through Inworld Router or Realtime API.
CapabilitiesInput modalitiesOutput modalitiesInference provider
xAIGrok 4.20 Non Reasoning2M$1.25$2.50+1

Start building with Grok 4.20

Access Grok 4.20 and every other model through Inworld Router or Realtime API. Create your free account and start routing in minutes.
Copyright © 2021-2026 Inworld AI
Grok 4.20 by xAI — Pricing, Specs & API Access | Inworld