Skip to content

Grok 4.20 Reasoning

Grok 4.20 Reasoning is xAI's reasoning model in the Grok 4.20 beta generation, supporting extended thinking for complex problem-solving with low hallucination rates and strict prompt adherence.

ReasoningVision (Image)Tool UseFile InputImplicit CachingWeb Search
index.ts
import { streamText } from 'ai'
const result = streamText({
model: 'xai/grok-4.20-reasoning',
prompt: 'Why is the sky blue?'
})

Frequently Asked Questions

  • What does 'reasoning' mean for Grok 4.20 Reasoning?

    Grok 4.20 Reasoning generates chain-of-thought reasoning traces before producing final answers. This extended thinking improves accuracy on complex tasks at the cost of additional latency and tokens.

  • What is the context window for Grok 4.20 Reasoning?

    2M tokens.

  • Is Grok 4.20 Reasoning in beta?

    Yes. Grok 4.20 Reasoning is currently in beta. Behavior, pricing, or availability may change before general availability.

  • What does Grok 4.20 Reasoning cost?

    Rates are listed on this page. They reflect the providers routing through AI Gateway and shift when providers update their pricing.

  • How do I authenticate with Grok 4.20 Reasoning through Vercel AI Gateway?

    Use your Vercel AI Gateway API key with xai/grok-4.20-reasoning as the model identifier. AI Gateway manages routing and authentication automatically.

  • Can I see the reasoning traces?

    Yes. Chain-of-thought traces are included in the API response. You can inspect and log them for debugging and auditing.

  • Does Vercel AI Gateway support Zero Data Retention for Grok 4.20 Reasoning?

    Yes, Zero Data Retention is available for this model. ZDR on AI Gateway applies to direct gateway requests; BYOK flows aren't covered. See https://vercel.com/docs/ai-gateway/capabilities/zdr for details.