← All Models
Grok 4 Fast
xAI's speed-optimized model. Built for high-throughput workloads with 2M token context.
Web Search
X Search
Specifications
| Provider | xAI |
| Category | Text |
| Context window | 2M tokens |
Pricing (Starter tier)
26.00 credits / 1M input tokens
65.00 credits / 1M output tokens
Higher tiers get volume discounts. See tiers
Quick Start
curl -X POST https://query.genx.sh/api/v1/generate \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4-fast",
"params": {
"prompt": "Write a haiku about programming"
}
}'
Example Request Body
// POST /api/v1/generate
{
"model": "grok-4-fast",
"params": {
"prompt": "Write a haiku about programming"
}
}