Grok · X ecosystem · Knowledge Hub
xAI — the flagship field guide
xAI Grok · X ecosystem complete guide: capability snapshots, API/console setup, Python and TypeScript examples, agent patterns, RAG, evals and IDE wiring.
Choose a flagship model
Grok 5 · 1M · 128K output
The next Grok base model — larger pretraining run, real-time tools and low-friction refusals.
Access: xAI API; Grok.com and X partners · Cost: $5 / $15 per 1M tokens
Grok 4 Fast · 2M · 64K output
Grok’s price/performance tier for daily coding, triage and high-volume evals.
Access: xAI API · Cost: $0.20 / $0.50 per 1M tokens
Official documentation
Back to Knowledge Base · Compare every model in the AI Models Atlas →