Back to Models Explorer99.96% uptime
xAI: Grok 4 Fast
Zero Data RetentionModel ID: x-ai/grok-4-fast · Released 2026-10-08
Ultra-long 2M context high-throughput model priced for massive document ingestion, log analysis, and real-time agent loops.
Context Window
2M
Input / 1M
$0.20
Output / 1M
$0.50
Avg TTFT
185ms
Throughput
230 tok/s
Weekly Volume
61.9B
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 | $0.20 / $0.50 | 185ms | 230/s | ZDR |
Capability Benchmarks
Software Engineering87 / 100
Deep Reasoning89 / 100
General Intelligence88 / 100
Modalities & Parameters
Input Modalities
textimage
Supported API Parameters
toolsstructured_outputsreasoningprompt_cachingstreaming
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-fast",
messages: [{ role: "user", content: "Hello from SevenRelay!" }],
stream: true,
});Routing Suffix Modifiers
- x-ai/grok-4-fast:nitro — fastest tok/s provider
- x-ai/grok-4-fast:floor — lowest cost/M provider