API Documentation

Release Notes

Stay up to date with the latest changes to the xAI API.


January 2025

JAN 6

Check service statuses across all xAI products at status.x.ai


December 2024

DEC 31

Replit Agents can now integrate with xAI! Start empowering your agents with Grok. Check out the announcement for more information.

DEC 30

Understanding tokens can be hard. Check out console.x.ai to get a better understanding of what counts as a token.

DEC 17

We're excited to announce that Grok now supports structured outputs. Grok can now format responses in a predefined, organized format rather than free-form text.

  1. Specify the desired schema
  1. Get the desired data

Start building more reliable applications. Check out the docs for more information.

DEC 14

A month ago, we launched the public beta of our enterprise API with grok-beta and grok-vision-beta. We’re adding grok-2-1212 and grok-2-vision-1212, offering better accuracy, instruction-following, and multilingual capabilities.


November 2024

NOV 19

Our API is now available through LangChain!

What are you going to build?

NOV 4

We are happy to announce the immediate availability of our API, which gives developers programmatic access to our Grok series of foundation models. To get started, head to console.x.ai and sign up to create an account. We are excited to see what developers build using Grok.