Pricing
Input
$2.00 / 1M tokens
Output
$6.00 / 1M tokens
Context Window
256K tokens
Max Completion
32.768K tokens
Supported Features
✓ Reasoning✓ Tool Use✓ Streaming✓ Image Input✓ Real-time Data✓ Multi-Agent
Supported Parameters
temperaturetop_pstoptoolsmax_tokensInput Modalities
textimage
Output Modalities
text
Release: 2026-03
API Usage
curl https://api.stackai.one/v1/chat/completions \
-H "Authorization: Bearer sk-your-key" \
-H "Content-Type: application/json" \
-d '{
"model": "x-ai/grok-4.20",
"messages": [{"role": "user", "content": "Create a 4-core VM"}],
"temperature": 0.7,
"max_tokens": 4096
}'