Grok 4.20
Grok 4.2 is xAI's reasoning model with a native 4-agent collaborative architecture, a 2M-token context window, and rich built-in tools. Access it through Velokey's unified endpoint with below-list pricing.
Use cases
Large-repo development & refactoring · Research across huge documents
Input
Text, image
Output
Text
Billing
Per token
Start a conversation
Type a message below to begin
Sign up to get $0.5 in free credits — about 20 free images
Pricing details
Transparent usage-based pricing with no hidden fees.
Detailed Pricing
Usage-based pricing breakdown
| Spec | Price | Official | Savings |
|---|---|---|---|
| Input/1M tokens | 1 Credits≈$1 | 1.25 Credits | -20% |
| Output/1M tokens | 2 Credits≈$2 | 2.5 Credits | -20% |
| Cache Read/1M tokens | 0.16 Credits≈$0.16 | 0.2 Credits | -20% |
Billing Rules
- Output price varies by model, resolution, quality, duration, or token usage.
- Uploaded reference files may be charged separately when supported.
- Add-on capabilities such as web search or image search may be billed per request.
- Token-based models are billed by input and output tokens.
- If the primary route is unavailable, Velokey may automatically switch to a stable fallback route when possible.
- Usage is pay-as-you-go with transparent credit deduction.
* Final cost depends on the generated result.
Related models
Explore other models in the same family.
- xAISave 20%
Grok 4.3
Grok 4.3 is xAI's always-on reasoning model for complex, accuracy-critical tasks, with a 1M-token context, vision, tool use, and web search at an aggressively low price.
- OpenAISave 20%
GPT 5.4 Mini
OpenAI's fast, cost-efficient GPT-5.4 Mini for high-volume production, with vision, long context, and strong tool use at low latency.
- AlibabaSave 20%
Qwen3.6 Plus
Alibaba's Qwen3.6 Plus, a balanced flagship-tier model with strong reasoning, long context, multimodal input, and agentic tool use.
- AnthropicSave 20%
Claude Fable 5
Anthropic's Mythos-class frontier model, state-of-the-art across coding, agentic work, vision, and scientific research.
Affordable Grok 4.2 API
Access xAI's Grok 4.2 on Velokey — a native 4-agent collaborative architecture, a 2M-token context, deep reasoning, and rich built-in tools, with a unified endpoint and below-list pricing for production apps.
Meet Grok 4.2 and its API access
Grok 4.2 (also called Grok 4.20) is xAI's reasoning model, built on a native 4-agent collaborative architecture in which specialized agents work in parallel, debate their conclusions, and synthesize a single answer. It ships with a 2,000,000-token context window — roughly 3,000 pages — so very large documents fit in one request. It accepts text and images, supports function calling, and calls built-in tools including web search, X search, code execution, and file attachments. Grok 4.2 entered beta on February 17, 2026, with API access in March 2026, and comes in reasoning, non-reasoning, and multi-agent variants. Velokey provides an affordable, easy-to-integrate Grok 4.2 API: a unified chat endpoint, a clear request flow, and below-list pricing for production systems, agent pipelines, and automation tools.
2M-token mega context
A 2,000,000-token context window fits very large documents — roughly 3,000 pages — in a single request, so you can reason across entire codebases, long contracts, and dozens of papers without splitting them up.
View Documentation →
Native 4-agent collaborative architecture
Specialized agents work in parallel, debate their conclusions, and synthesize one final answer, catching mistakes before they reach you. Reasoning, non-reasoning, and multi-agent variants cover different workloads.
View Documentation →
Deep reasoning
Grok 4.2 reasons step by step through complex, multi-part problems, staying coherent across the full 2M-token context to reach grounded, well-argued conclusions.
View Documentation →
Rich built-in tool use
Multimodal text and image input, function calling, and built-in web search, X search, code execution, and file attachments — pulling in fresh, verifiable evidence, billed per call on top of tokens.
View Documentation →
How to deploy the Grok 4.2 API on Velokey
Get started with just a few steps.
Sign up and get an API Key
Sign in to the Velokey console to generate an API Key that authenticates every request sent to Grok 4.2.
Configure request parameters
Set model to grok-4-2 and submit messages with text and images. Enable the 2M-token context for very large documents; turn on web search, X search, code execution, or file attachments as needed.
Integrate and start calling
Send requests to Velokey's unified /v1/chat/completions endpoint to power assistants, agents, and automation, with usage managed in one console.
Real-world use cases for Grok 4.2
From engineering to research, covering many high-autonomy scenarios.
Large-repo development & refactoring
With a 2M-token context and deep reasoning, fit for development, refactoring, and bug fixing across an entire codebase in one pass.
Research across huge documents
Load thousands of pages at once — long contracts, filings, and dozens of papers — and have the agents synthesize a grounded answer.
Multi-agent analysis
The 4-agent architecture debates hard problems and cross-checks conclusions, improving reliability on complex reasoning tasks.
Complex agents & long-horizon planning
Fit for complex agentic workflows and long-horizon planning, with function calling and built-in tools keeping runs on track.
Real-time & X data analysis
Built-in web search and X search pull in fresh, verifiable evidence — fit for trend, market, and social analysis.
Multimodal document understanding
Text and image input in one request — fit for reading charts, screenshots, and scanned pages alongside long text.
Why choose Velokey for Grok 4.2
Discount on list price
Call Grok 4.2 at a lower price on Velokey — pay-as-you-go with no forced subscription, reducing upfront cost.
Unified API interface
One API Key accesses Grok 4.2 and other models — no juggling multiple accounts and keys, simplifying integration.
Complete docs and integration guidance
Endpoint references, parameter details, and examples help you wire up the 2M-token context, multi-agent variants, and built-in tools.
Stable and highly available
Automatic failover and stable fallback routes maintain availability when the primary route is down, keeping production reliable.
API Reference
Complete API call examples and parameter descriptions
Endpoint
https://api.velokey.ai/v1/chat/completionsAuthentication
Bearer YOUR_API_KEYRequest Example
curl https://api.velokey.ai/v1/chat/completions \
-X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4.20-0309-reasoning",
"messages": [{"role": "user", "content": "Hello!"}],
"temperature": 0.7
}'Response Example
{
"id": "req_abc123",
"model": "grok-4.20-0309-reasoning",
"created": 1234567890,
"data": { ... }
}Grok 4.2 API FAQ
What is Grok 4.2's 4-agent architecture?
Grok 4.2 (Grok 4.20) uses a native 4-agent collaborative architecture: specialized agents work in parallel, debate their conclusions, and synthesize a single final answer. Reasoning, non-reasoning, and multi-agent variants are available so you can match the model to the workload.
How large is the context window?
Grok 4.2 has a 2,000,000-token context window — roughly 3,000 pages — so you can load very large documents, entire codebases, or long case files in a single request.
What inputs and tools are supported?
It accepts multimodal input (text and images) and returns text. It supports function calling plus built-in web search, X search, code execution, and file attachments. Built-in tools are billed per call on top of tokens.
When was it released?
Grok 4.2 entered beta on February 17, 2026, with API access opening in March 2026. Set model to grok-4-2 to call it on Velokey.
How is it billed on Velokey?
Grok 4.2 is billed by input and output tokens through Velokey's unified endpoint, with below-list pricing. Built-in tool calls such as web search, X search, code execution, and file attachments are billed per call on top of tokens.
Start building with Grok 4.20 today
Use one API key to access low-cost, stable AI models through Velokey.