Back to Models
x

Grok 4.20

xAI/x-ai/grok-4.20
Chat

Advanced Grok model with enhanced capabilities

Input Price

$1.25

per 1M tokens

Output Price

$2.5

per 1M tokens

Context

1M

tokens

Modalities

text

Model ID

x-ai/grok-4.20

Pricing Breakdown

DirectionPer 1K tokensPer 1M tokens
Input$0.00125000$1.25
Output$0.00250000$2.50

Quick Start

from openai import OpenAI

client = OpenAI(
    api_key="dg-your-api-key",
    base_url="https://api.doggiegateway.com/v1"
)

response = client.chat.completions.create(
    model="x-ai/grok-4.20",
    messages=[{"role": "user", "content": "Hello!"}]
)

print(response.choices[0].message.content)

How It Works

Doggie Gateway routes your request to xAI's API through OpenRouter. You get the best available pricing and automatic fallback if a provider is unavailable.

Pay-per-use pricing
No monthly fees
OpenAI-compatible API

Ready to use Grok 4.20?

Create an account, get your API key, and start making API calls in under a minute.