Textby xAI

Grok 4.20

Grok 4.20 is a reasoning model from SpaceXAI with industry-leading speed and agentic tool calling capabilities. It combines the lowest hallucination rate on the market with strict prompt adherance, delivering...

  • By price it is in the pricier half of the 345 text models GenMagic runs (213th cheapest).
  • Among the models GenMagic runs, it places in the top 10 on 3 of its 23 benchmarks: 3rd of 25 on Design Arena: HTML Slides (agentic), 3rd of 14 on CL-bench, 8th of 11 on CL-bench Life.
  • It was listed on Mar 31, 2026.

Data last changed Nov 13, 2026 · tracked since Oct 29, 2026 · Every model change

Try Grok 4.20

Generate with Grok 4.20 right here. Verify your email to start with free credits.

~$0.006
Try

Specifications

Context window

2M tokens

Max output

1.8M tokens

Knowledge cutoff

2025-09-01

Input price

$1.88 / 1M tokens

Output price

$3.75 / 1M tokens

Cached input

$0.30 / 1M tokens

Benchmarks

How Grok 4.20 scores on public benchmarks. Each card links to the benchmark explainer and to the original source.

Compare against every model in the full benchmark matrix.

Capabilities

Reasoning

Works through multi-step problems before answering, for harder tasks.

Vision input

Accepts images alongside text, so you can prompt with pictures and screenshots.

Tool use

Can call functions and tools, enabling agentic and structured workflows.

Structured output

Returns validated JSON that conforms to a schema you define.

Use Grok 4.20 through the API

The model id is x-ai/grok-4.20. Requests bill your GenMagic balance at the price above, and each response reports what it cost.

curl
curl https://genmagic.co/api/v1/chat/completions \
  -H "Authorization: Bearer $GENMAGIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "x-ai/grok-4.20",
    "messages": [{ "role": "user", "content": "Explain vector databases in two sentences." }]
  }'
Python (openai SDK)
from openai import OpenAI

client = OpenAI(base_url="https://genmagic.co/api/v1", api_key="YOUR_GENMAGIC_API_KEY")

resp = client.chat.completions.create(
    model="x-ai/grok-4.20",
    messages=[{"role": "user", "content": "Explain vector databases in two sentences."}],
)
print(resp.choices[0].message.content)

From an AI agent, call generate_text with "model": "x-ai/grok-4.20" on the GenMagic MCP server. Keys, limits and every endpoint are in the API documentation.

Use Grok 4.20 in n8n

  1. In n8n, open the nodes panel, search for GenMagic and install it (a verified community node), then add it to your workflow.
  2. Set Resource to Text and Operation to Generate.
  3. In Model Name or ID, pick SpaceXAI: Grok 4.20, or enter x-ai/grok-4.20 as an expression.
  4. Connect your GenMagic API key (get one free). Each run is billed at the price above, and the node returns what it cost.

Ready-to-import workflows that already use the node are on GenMagic for n8n.

Similar-priced text models from other providers

Other text models GenMagic runs at a comparable price, on the same balance and API key.

ModelProviderPriceContext
SpaceXAI: Grok 4.20 (this model)xAI$1.88 in / $3.75 out per 1M tokens2M
StepFun: Step 5 PreviewStepFun$1.50 in / $4.05 out per 1M tokens1M
Z.ai: GLM 5.3Z.AI$0.13 in / $5.40 out per 1M tokens1M
Elorian: GlimpseElorian$0.90 in / $4.50 out per 1M tokens262K
Qwen: Qwen3 235B A22B Thinking 2507Qwen$0.68 in / $5.25 out per 1M tokens128K
Pareto 26.10Unbiased$1.20 in / $4.80 out per 1M tokens1M

More from xAI

All 12 xAI models

Price and listing history

Every change GenMagic has recorded for Grok 4.20 since it began tracking the model on Oct 29, 2026. Prices are GenMagic's, the same the studio and the API charge.

DateChangeBeforeAfter
Nov 1, 2026Price up 36%$1.38 in / $2.75 out per 1M tokens$1.88 in / $3.75 out per 1M tokens

Where these figures come from

  • Price: GenMagic's own price, what the studio and the API charge, recomputed from the provider's price list every few minutes and recorded daily. How pricing works.
  • Specs and description: as xAI publishes them, checked daily.
  • Benchmarks: 23 scores from Epoch AI, Design Arena, re-read daily. Each score above links to its source.
  • Changes: the data on this page last changed on Nov 13, 2026, tracked since Oct 29, 2026. Every model's new listings, price changes and retirements are in the model changes log, and how every figure on GenMagic is sourced is on our sources page.

Generate with Grok 4.20 today

One GenMagic plan unlocks Grok 4.20 and every other model across text, image, audio, and video.