The Next Frontier of Enterprise AI
[ Capabilities ]

Models that fit your needs

Reasoning

Understand the universe: solve humanity's most difficult scientific problems with deep thought.

Vision

See the world through vision, interpreting images and visuals with sharp, insightful understanding.

Tool calling

Craft agentic experiences with both server-side and client-side tool calling with our Agent Tools API.

Structured outputs

Organize chaos with structured outputs, delivering clean, predictable responses.

Image generation

Bring your ideas to life with image generation, creating visuals that are as unique as you are.

Search

Tap into the now with real-time search, pulling fresh, relevant data from the web and X instantly.

New
[ Enterprise ]

Ready for your business

Single sign-on

Seamlessly integrate secure logins for your entire team via your chosen identity provider.

Audit logging

Track and review all user actions and API key usage with comprehensive, detailed logs.

Authorization controls

Precisely manage access through role-based access controls and fine-grained permissions.

Compliance

Meet stringent standards like SOC 2 Type 2, GDPR, CCPA, Zero Data Retention, and beyond for peace of mind.

Data residency

Retain full control over data storage and processing locations to suit your needs.

More

Contact us to discuss your specific enterprise needs.

[ Minutes to launch ]

Quickstart

Our API is compatible with OpenAI and Anthropic’s SDKs. Migrating is as easy as generating an API key and changing a URL.

Start building
Installing Grok...

Grok 4: Available now

We're proud to bring you Grok 4 access on the API, offering advanced reasoning, coding, and visual processing capabilities.

View docs
[ For projects big and small ]

Models and pricing

grok-4-1-fast-reasoning
New

Bringing the next generation of tool-calling agents to the xAI API

Capabilities
Context window
2M
Text Input
$0.20
Image Input
-
Output
$0.50
grok-4-1-fast-non-reasoning
New

Bringing the next generation of tool-calling agents to the xAI API

Capabilities
Context window
2M
Text Input
$0.20
Image Input
-
Output
$0.50
grok-4-fast-reasoning

Pushing the Frontier of Cost-Efficient Intelligence

Capabilities
Context window
2M
Text Input
$0.20
Image Input
-
Output
$0.50
grok-4-fast-non-reasoning

Pushing the Frontier of Cost-Efficient Intelligence

Capabilities
Context window
2M
Text Input
$0.20
Image Input
-
Output
$0.50
grok-code-fast-1

A lightning fast reasoning model built for agentic coding

Capabilities
Context window
256k
Text Input
$0.20
Image Input
-
Output
$1.50
grok-4

The world's best model, at your fingertips.

Capabilities
Context window
256k
Text Input
$3.00
Image Input
-
Output
$15.00
grok-2-image-1212

Our latest image generation model capable of generating multiple images from text prompt.

Capabilities
Context window
131072
Text Input
-
Image Input
-
Output
$0.07per image

All prices are per million tokens or as stated.

Full pricing can be found on our docs.

Cost calculator

0
500k
0
500k
0
5k
Cost$0.39
Large contexts are charged at $6.00 for input and $30.00 for output

Latest news

xAI Raises $20B Series E

xAI is rapidly accelerating its progress in building advanced AI.

January 06, 2026

Introducing Grok Business and Grok Enterprise

The best assistant in the world is now Enterprise ready.

December 30, 2025

Grok Collections API

State-of-the-art RAG system built directly into our API.

December 22, 2025