xAI

xAI

Grok 4.20

xAI's 4.20 generation. 2M context, vision, file input, reasoning; the rate doubles above 200K prompt tokens.

Modalities

Text+Image → Text

Input

$1.688 /1M

Output

$3.375 /1M

Context

2M

Speed

medium

Pricing

Pay per token. Cached input is billed at 10% of the input rate.

$1.688 /1M input$3.375 /1M output
Hobby10 req/day · 2K in / 500 out
~$1.52/mo
Production1,000 req/day · 2K in / 500 out
~$152/mo
Scale20,000 req/day · 2K in / 500 out
~$3,038/mo
+ Estimate your workload
1,000
2,000
500

Estimated monthly cost

$152

$5.06 / day on Grok 4.20

Same workload on:

Grok 4.20 Multi-Agent$152
Grok 4.5$284+87%

Estimates use list pricing. Actual bills depend on real token counts — every response includes its exact cost.

How it compares

Against the peers people actually weigh it against.

SpecGrok 4.20Grok 4.20 Multi-AgentGrok 4.5
Input /1M$1.688$1.688$2.70
Output /1M$3.375$3.375$8.10
Context2M2M500K
ToolsYesNoYes
ReasoningYesYesYes
Speedmediumslowmedium

Quick start

Up and running in under two minutes.

  1. 1

    Create an API key

    Sign up and grab a key from the dashboard — $0.50 free credit, no card required.

    Get API key →
  2. 2

    Make your first request

    Drop in your key and send a chat completion — fully OpenAI-compatible.

    curl https://kymaapi.com/v1/chat/completions \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "model": "grok-4.20",
        "messages": [
          {"role": "user", "content": "Explain prompt caching in one paragraph."}
        ]
      }'
  3. 3

    Stream responses

    Add "stream": true to receive tokens as they arrive.

    curl https://kymaapi.com/v1/chat/completions \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "model": "grok-4.20",
        "stream": true,
        "messages": [{"role": "user", "content": "Hello!"}]
      }'

FAQ

Common questions about this model.

What is the context window of Grok 4.20?

Grok 4.20 has a 2M-token context window — roughly 2941 pages of text in a single request.

How much does the Grok 4.20 API cost?

$1.688 per 1M input tokens and $3.375 per 1M output tokens. No subscription; you pay only for what you use.

Does Grok 4.20 support function calling?

Yes — Grok 4.20 supports tool/function calling and structured outputs (JSON mode), so it works with agent frameworks out of the box.

How do I use Grok 4.20?

Kyma is OpenAI-compatible: point your SDK's base URL at https://kymaapi.com/v1, use your Kyma API key, and set the model to grok-4.20. Signing up is free and includes $0.50 of credit — no card required.

Start with $0.50 free credit — no card required.Create account →

More models by xAI

ModelContextInputOutput
xAIGrok 4.5500K$2.70$8.10
xAIGrok Build256K$1.389$2.777
xAIGrok 4.31M$1.688$3.375
xAIGrok 4.20 Multi-Agent2M$1.688$3.375