Build with Grok
using the xAI API

We’re excited to announce the launch of the xAI API, giving developers unfiltered access to our state-of-the-art language models.


Public beta

We're running a public beta program until the end of 2024. To kick things off, we make an early version of a next-gen model available under the name grok-beta.

The model offers function calling, a 128k context length, and system prompt support.


Quickstart

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

Installing Grok...

Get started for free

Until the end of 2024, all users will get $25 free monthly credits. Simply sign up and they will automatically apply to your account.

Grok. Grok? Grok!