Skip to content

Try Grok 4.20 on AI Gateway

1 min read

Grok 4.20 is now available on Vercel AI Gateway in three variants: Reasoning, Non-Reasoning, and Multi-Agent. As xAI's newest flagship model, Grok 4.20 delivers industry-leading speed and agentic tool calling capabilities. It offers a low hallucination rate and strict prompt adherence, producing precise responses.

  • Grok 4.20 Non-Reasoning: Non-reasoning variant optimized for speed and direct responses

  • Grok 4.20 Reasoning: Extended thinking for complex problem-solving tasks

  • Grok 4.20 Multi-Agent: Purpose-built for multi-agent orchestration and collaboration

To use Grok 4.20, set model to xai/grok-4.20-non-reasoning-beta, xai/grok-4.20-reasoning-beta or xai/grok-4.20-multi-agent-beta in the AI SDK.

import { streamText } from 'ai';
const result = streamText({
model: 'xai/grok-4.20-reasoning-beta',
prompt:
`Analyze this dataset for anomalies, cross-reference
against our historical baselines, and generate
a summary report with recommended actions.`,
});

AI Gateway provides a unified API for calling models, tracking usage and cost, and configuring retries, failover, and performance optimizations for higher-than-provider uptime. It includes built-in observability, Bring Your Own Key support, and intelligent provider routing with automatic retries.

Learn more about AI Gateway, view the AI Gateway model leaderboard or try it in our model playground.