Skip to main content
xAI

xAI

Grok models — real-time data, multi-agent

2
Models
$2.00
Cheapest Input
256K
Max Context

Pricing

Input
$2.00 / 1M tokens
Output
$6.00 / 1M tokens
Context Window
256K tokens
Max Completion
32.768K tokens

Supported Features

ReasoningTool UseStreamingImage InputReal-time DataMulti-Agent

Supported Parameters

temperaturetop_pstoptoolsmax_tokens

Input 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
  }'

Integrate xAI into Your Cloud

Add xAI models to your StackAI platform. Your customers get AI-powered cloud management instantly.