xai logo 81% off

Grok 4.20 Beta API

xAI·Text

Grok 4.20 Beta

2M Context 128.0K out $7,549.92 capacity 1.4K req/24h $5.27 24h volume
Input
Text
Output
Text

Pricing

Cheapest live price, per 1 million tokens.

Input / 1M tokens

$0.24281% off

$1.25 OpenRouter

Output / 1M tokens

$0.52579% off

$2.50 OpenRouter

Cache read / 1M

$0.039

Repeated prompt prefixes

Cache read is the discounted rate for repeated prompt prefixes (system prompts, agent context).

Capabilities · 9

Vision Reasoning Adjustable reasoning Tool calling JSON mode JSON schema Streaming Seed Logprobs

Specifications

Context window
2M
Max output
128K
Type
Text
Creator
xAI
Live sellers
23
Requests / 24h
1,372

Price history · 60 days

Sep 5 — Nov 4▼ 15.08% vs last week
Compare all top models

Estimated monthly cost

30 days at the cheapest live price.

AI Chatbot
1,000 req/day · 2K in · 0.5K out
$22.39/mo
$112.50 OpenRouter
Coding Copilot
500 req/day · 8K in · 2K out
$44.78/mo
$225.00 OpenRouter
AI Agent
100 req/day · 50K in · 5K out
$44.16/mo
$225.00 OpenRouter

Quick start

OpenAI-compatible — change the base URL and key. Get a key from the dashboard.

from openai import OpenAI

client = OpenAI(
    base_url="https://api.qubax.ai/v1",
    api_key="YOUR_QUBAX_API_KEY",
)

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

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

About Grok 4.20 Beta

Grok 4.20 Beta is a language model developed by xAI. It's particularly well-suited for analyzing images, screenshots, and visual content, tackling complex, multi-step reasoning problems, orchestrating tool-using agents that call APIs and external services, producing structured outputs for reliable data extraction and handling large contexts of up to 2M tokens. Its 2M-token context window means you can pass in entire documents, codebases, or conversation histories without losing context. It can write up to 128K tokens in a single response.

As of Nov 4, 2026, Grok 4.20 Beta costs $0.242 per 1M input tokens and $0.525 per 1M output tokens on Qubax, versus $1.25 / $2.50 on OpenRouter (81% less on input). A typical 1,000 chat requests (2K tokens in, 500 out) come to about $0.75. 23 independent compute providers currently serve it, so requests fail over automatically. It handled 1,372 requests on Qubax in the last 24 hours. Pay with USDC, USDT, BTC, ETH or 350+ other coins — no credit card required.

Visual Analysis
Analyze images, screenshots, diagrams, and visual content
Complex Reasoning
Multi-step problem solving, math, and logical analysis
Function Calling
Build agents and tool-using applications
Long Documents
Process entire codebases, books, or lengthy conversations
Chat & Conversation
Build AI chatbots and conversational assistants

Similar-priced alternatives

Frequently asked questions

How much does the Grok 4.20 Beta API cost?

On Qubax, Grok 4.20 Beta costs $0.242 per 1M input tokens and $0.525 per 1M output tokens. This is 81% cheaper than OpenRouter's price of $1.25 per 1M input tokens.

Is the Grok 4.20 Beta API compatible with OpenAI?

Yes. Qubax provides an OpenAI-compatible API. You can use Grok 4.20 Beta as a drop-in replacement by changing your base URL to https://api.qubax.ai/v1 and using your Qubax API key. It works with Cline, Cursor, OpenCode, Hermes Agent, and any tool that supports OpenAI APIs.

Why is Grok 4.20 Beta cheaper on Qubax than OpenRouter?

Qubax sources AI inference from an open compute marketplace on the Base blockchain where GPU providers compete on price. We pass the savings to you — 81% cheaper than OpenRouter's price for Grok 4.20 Beta.

How do I pay for Grok 4.20 Beta API usage?

Qubax uses prepaid crypto credits. Top up with USDC, USDT, BTC, ETH, SOL or 350+ other coins and your balance is deducted as you use the API. No credit card or KYC required.

What is the context window of Grok 4.20 Beta?

Grok 4.20 Beta supports a context window of 2M tokens, allowing you to process large documents, codebases, or long conversations in a single request.

What can I build with Grok 4.20 Beta?

You can use Grok 4.20 Beta to analyze images and visual content, tackle complex multi-step reasoning tasks, build autonomous agents that call external tools and APIs, generate structured JSON output for data pipelines and process long documents and entire codebases. Because it's served through Qubax's OpenAI-compatible API, integration into existing apps, agents, or workflows takes just a few lines of code.

How fast and reliable is Grok 4.20 Beta on Qubax?

Responses stream token by token. 23 sellers serve it, so if one is slow or down the request moves to the next.

Grok 4.20 Beta vs Moondream: Moondream 3.1: which should I choose?

Grok 4.20 Beta by xAI and Moondream: Moondream 3.1 by Other are both strong models in a similar price tier. Grok 4.20 Beta excels at complex reasoning and supports vision/image inputs. Moondream: Moondream 3.1 comes from a different lab and may have different strengths depending on your workload. On Qubax, Grok 4.20 Beta starts at $0.242/1M input tokens while Moondream: Moondream 3.1 comes in at $0.135/1M, so Moondream: Moondream 3.1 may be worth considering if you need to minimize per-token cost. Both are available on Qubax with crypto payments and OpenAI-compatible APIs, so you can try each and switch freely.

Can I use Grok 4.20 Beta for commercial projects?

Yes. Grok 4.20 Beta on Qubax can be used for commercial purposes. You own the outputs you generate. Qubax provides the API infrastructure — you bring your use case.

Why use Grok 4.20 Beta on Qubax?

81% cheaper

Providers compete on price — you get the cheapest healthy seller.

Pay with crypto

350+ coins (BTC, ETH, SOL, USDT, USDC). No card, no KYC.

OpenAI & Anthropic compatible

Drop-in base URL. Works with Cline, Cursor, Claude Code, OpenAI and Anthropic SDKs.

Get started free →

More from xAI

Browse 380+ other AI models

GPT, Claude, Gemini, Llama, DeepSeek & more.

See all models →

Grok 4.20 Beta

$0.242 in · $0.525 out

Get API key