← All Models
Grok 4.5
xAI's flagship model for code and everything else. New-generation architecture trained on multi-step software engineering, ~2x token efficiency, minimal hallucinations, configurable reasoning, and a 500K token context window.
Web Search
X Search
Specifications
| Provider | xAI |
| Category | Text |
| Context window | 500K tokens |
Pricing (Starter tier)
260.00 credits / 1M input tokens
780.00 credits / 1M output tokens
Higher tiers get volume discounts. See tiers
Quick Start
curl -N https://query.genx.sh/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"grok-4.5","messages":[{"role":"user","content":"Find and fix the bug, then explain it: function median(a){a.sort();return a[a.length/2]}"}],"stream":true}'