Back to Models Explorer99.93% uptime
xAI: Grok 4
Zero Data RetentionModel ID: x-ai/grok-4 · Released 2026-08-20
High-velocity frontier reasoning model with native tool orchestration, live knowledge synthesis, and incisive analytical writing.
Context Window
256K
Input / 1M
$3.00
Output / 1M
$15.00
Avg TTFT
340ms
Throughput
108 tok/s
Weekly Volume
54.3B
Routable Upstream Endpoints (1)
SevenRelay automatically balances and fails over across healthy endpoints below.
| Provider | Quant / Region | Pricing (In/Out) | TTFT | Speed | Policy |
|---|---|---|---|---|---|
| xAI Direct | Native us | $3.00 / $15.00 | 340ms | 108/s | ZDR |
Capability Benchmarks
Software Engineering93 / 100
Deep Reasoning95 / 100
General Intelligence94 / 100
Modalities & Parameters
Input Modalities
textimage
Supported API Parameters
toolsstructured_outputsreasoningweb_searchstreaming
Quick API Integration
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.sevenrelay.ai/v1",
apiKey: process.env.SEVENRELAY_API_KEY,
});
const res = await client.chat.completions.create({
model: "x-ai/grok-4",
messages: [{ role: "user", content: "Hello from SevenRelay!" }],
stream: true,
});Routing Suffix Modifiers
- x-ai/grok-4:nitro — fastest tok/s provider
- x-ai/grok-4:floor — lowest cost/M provider