Grok 4.20
Newby xAI
xAI flagship reasoning model with an industry-leading 2M-token context.
Parameters
Flagship
Context Length
2M
Category
chat
Available Serverless
Run queries immediately, pay only for usage
$2.10in|$6.30out
Per 1M Tokens
About this model
xAI flagship reasoning model with an industry-leading 2M-token context.
Capabilities
Advanced reasoningVisionLong context (2M)Tool calling
Model Details
- Provider
- xAI
- Model ID
- grok-4.20
- Parameters
- Flagship
- Context Length
- 2M tokens
- Category
- chat
API Usage
Use the DOS API to integrate Grok 4.20into your applications. Our API is compatible with OpenAI's client libraries for easy migration.
Model ID
grok-4.20Python
python
from dos import DOS
client = DOS()
response = client.chat.completions.create(
model="grok-4.20",
messages=[
{"role": "user", "content": "Hello, how are you?"}
]
)
print(response.choices[0].message.content)cURL
bash
curl https://api.dos.ai/v1/chat/completions \
-H "Authorization: Bearer $DOS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4.20",
"messages": [
{"role": "user", "content": "Hello, how are you?"}
]
}'Node.js
javascript
import DOS from 'dos-ai';
const client = new DOS();
const response = await client.chat.completions.create({
model: "grok-4.20",
messages: [
{ role: "user", content: "Hello, how are you?" }
]
});
console.log(response.choices[0].message.content);Related Models
DOS.AI
DOS.AI Auto
Smart router that automatically picks the best model for each request - free models for simple tasks, frontier models for complex ones.
Usage-based
DOS.AI
DOS.AI (Qwen 3.6)
Our flagship in-house model - Qwen 3.6 35B-A3B MoE, self-hosted in Vietnam. 70B-class quality at near-8B cost.
$0.07 / 1M tokens
DeepSeek
DeepSeek V4 Flash
Fast, low-cost MoE reasoning model with a 1M-token context window. Replaces DeepSeek V3.
$0.15 / 1M tokens