Understand the universe: solve humanity's most difficult scientific problems with deep thought.
See the world through vision, interpreting images and visuals with sharp, insightful understanding.
Craft agentic experiences with both server-side and client-side tool calling with our Agent Tools API.
Organize chaos with structured outputs, delivering clean, predictable responses.
Bring your ideas to life with image generation, creating visuals that are as unique as you are.
Tap into the now with real-time search, pulling fresh, relevant data from the web and X instantly.
Seamlessly integrate secure logins for your entire team via your chosen identity provider.
Track and review all user actions and API key usage with comprehensive, detailed logs.
Precisely manage access through role-based access controls and fine-grained permissions.
Meet stringent standards like SOC 2 Type 2, GDPR, CCPA, Zero Data Retention, and beyond for peace of mind.
Retain full control over data storage and processing locations to suit your needs.
Contact us to discuss your specific enterprise needs.
Our API is compatible with OpenAI and Anthropic’s SDKs. Migrating is as easy as generating an API key and changing a URL.
Start buildingWe're proud to bring you Grok 4 access on the API, offering advanced reasoning, coding, and visual processing capabilities.
View docsBringing the next generation of tool-calling agents to the xAI API
Bringing the next generation of tool-calling agents to the xAI API
Pushing the Frontier of Cost-Efficient Intelligence
Pushing the Frontier of Cost-Efficient Intelligence
A lightning fast reasoning model built for agentic coding
The world's best model, at your fingertips.
Our latest image generation model capable of generating multiple images from text prompt.
| Model | Capabilities | Context window | Text Input | Image Input | Output |
grok-4-1-fast-reasoning NewBringing the next generation of tool-calling agents to the xAI API | 2M | $0.20 | $0.20 | $0.50 | |
grok-4-1-fast-non-reasoning NewBringing the next generation of tool-calling agents to the xAI API | 2M | $0.20 | $0.20 | $0.50 | |
grok-4-fast-reasoning Pushing the Frontier of Cost-Efficient Intelligence | 2M | $0.20 | $0.20 | $0.50 | |
grok-4-fast-non-reasoning Pushing the Frontier of Cost-Efficient Intelligence | 2M | $0.20 | $0.20 | $0.50 | |
grok-code-fast-1 A lightning fast reasoning model built for agentic coding | 256k | $0.20 | - | $1.50 | |
grok-4 The world's best model, at your fingertips. | 256k | $3.00 | $3.00 | $15.00 | |
grok-2-image-1212 Our latest image generation model capable of generating multiple images from text prompt. | 131072 | - | - | $0.07 per image |
All prices are per million tokens or as stated.
Full pricing can be found on our docs.
xAI is rapidly accelerating its progress in building advanced AI.
The best assistant in the world is now Enterprise ready.