Skip to content
Try Hanzo
Language: English (United States)

Grok 4.20

Grok 4.20 is a reasoning model from SpaceXAI with industry-leading speed and agentic tool calling capabilities.

Context Window
2M
In
$1.39per million tokens
Out
$2.78per million tokens

xAI

Model IDx-ai/grok-4.20

Specifications

Context Window
2M
Modalities
text
Price
$1.39 in · $2.78 out, per million tokens
Model ID
x-ai/grok-4.20

Quick start

x-ai/grok-4.20

$1.39 in · $2.78 out, per million tokens

TypeScript
import OpenAI from 'openai'
 
const client = new OpenAI({
  apiKey: process.env.HANZO_API_KEY,
  baseURL: 'https://api.hanzo.ai/v1'
})
 
const response = await client.chat.completions.create({
  model: 'x-ai/grok-4.20',
  messages: [{ role: 'user', content: 'Hello!' }]
})
 
console.log(response.choices[0].message.content)
Get an API key →

$19.48Bill a month

$19.48 a month at 10M in and 2M out.

Grok 4.20$19.482M

Use Grok 4.20 via Hanzo AI

One API key. Every major model. OpenAI-compatible. Start free.