Vercel AI Gateway exposes Grok 4.20 Multi-Agent through model ID xai/grok-4.20-multi-agent. Use the setup steps, sourced pricing, capabilities, and official provider links below to validate this route before deployment.
Last refreshed 2026-07-10. Next refresh: weekly.
Quick Start
- 1
- 2Use the Vercel AI Gateway SDK or REST API to call
xai/grok-4.20-multi-agent— see the documentation for request format. - 3
Code Examples
Install
pip install openaiAPI key
AI_GATEWAY_API_KEYModel ID
xai/grok-4.20-multi-agentcreator/model-name e.g. kwaipilot/kat-coder-pro-v2
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["AI_GATEWAY_API_KEY"],
base_url="https://ai-gateway.vercel.sh/v1"
)
response = client.chat.completions.create(
model="xai/grok-4.20-multi-agent",
messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)Pricing on Vercel AI Gateway
| Type | Price (per 1M) |
|---|---|
| Input tokens | $1.25 |
| Output tokens | $2.50 |
| Query | $5.00 |
Capabilities
VisionMultimodalReasoningJSON / Tool useStructured Outputs
About Grok 4.20 Multi-Agent
Grok 4.20 Multi-Agent is xAI's current API variant, served as grok-4.20-multi-agent-0309. Its reasoning.effort parameter controls collaborating-agent count. xAI's public pricing page lists a 1M-token context window.
Model Specs
Released2026-03-10
Context1m
Knowledge cutoff2024-11