# Grok 4.20 — Use via Hanzo AI API

> Grok 4.20 is a reasoning model from SpaceXAI with industry-leading speed an... Call via Hanzo's OpenAI-compatible API. Context: 2M.

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

[Get API key](https://platform.hanzo.ai/api-keys)[Try in Chat](https://hanzo.ai/chat)

Context Window

**2M**

In

**$1.39**per million tokens

Out

**$2.78**per million tokens

xAI

Model ID`x-ai/grok-4.20`

### Specifications

In_$1.39_

Out_$2.78_

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 →](https://platform.hanzo.ai/api-keys)

## More from xAI

[View all xAI models →](https://hanzo.ai/models/x-ai)

**$19.48**Bill a month

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

Input a month**10M**Output a month**2M**

Grok 4.20**$19.48**2M

- [Grok 4.20 Multi-Agent x-ai/grok-4.20-multi-agentGrok 4.20 Multi-Agent is a variant of SpaceXAI’s Grok 4.20 designed for collaborative, agent-based workflows. Multiple agents operate in parallel to conduct deep research, coordinate tool use, and synthesize information...2M](https://hanzo.ai/models/x-ai/grok-4.20-multi-agent)
- [Grok 4.3 x-ai/grok-4.3Grok 4.3 is a reasoning model from SpaceXAI. It accepts text and image inputs with text output, and is suited for agentic workflows, instruction-following tasks, and applications requiring high factual...1M](https://hanzo.ai/models/x-ai/grok-4.3)
- [Grok 4.5 x-ai/grok-4.5Grok 4.5 is a model from SpaceXAI with frontier performance on coding, knowledge work, and STEM.500K](https://hanzo.ai/models/x-ai/grok-4.5)
- [Grok 4.6 x-ai/grok-4.6Grok 4.6 is a model from SpaceXAI with frontier performance on coding, knowledge work, and STEM. It is succeeded by \[Grok 4.7\](/x-ai/grok-4.7).500K](https://hanzo.ai/models/x-ai/grok-4.6)
- [Grok 4.7 x-ai/grok-4.7Grok 4.7 is SpaceXAI's flagship model for coding, agentic tasks, and knowledge work, succeeding Grok 4.6. It is particularly strong at long-running software engineering tasks, verifying its own work, and...500K](https://hanzo.ai/models/x-ai/grok-4.7)
- [Grok Latest ~x-ai/grok-latestThis model always redirects to the latest Grok model from xAI.500K](https://hanzo.ai/models/x-ai/grok-latest)

- [**Grok 4.3 (batch) (opens in a new tab)**x-ai/grok-4.3:batch1MGrok 4.3 is a reasoning model from SpaceXAI. It accepts text and image inputs with text output, and is suited for agentic workflows, instruction-following tasks, and applications requiring high factual...](https://hanzo.app/models/x-ai/grok-4.3:batch)
- [**Grok 4.6 (batch) (opens in a new tab)**x-ai/grok-4.6:batch500KGrok 4.6 is a model from SpaceXAI with frontier performance on coding, knowledge work, and STEM. It is succeeded by \[Grok 4.7\](/x-ai/grok-4.7).](https://hanzo.app/models/x-ai/grok-4.6:batch)

## Use Grok 4.20 via Hanzo AI

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

[Get an API key](https://platform.hanzo.ai/api-keys)[Browse All Models](https://hanzo.ai/models)
