X

x.ai

xAI provides Grok models and related AI capabilities including text, image, video, voice, files, and enterprise management features. It also offers Grok Build, a terminal-based coding agent and CLI.

7 integrations · MCP · REST · CLI

xAI exposes authenticated REST APIs for inference, management, and realtime voice; a public Docs MCP server; a Grok Build CLI; and separate gRPC docs for the API.

discovered 2mo ago
MCP servers1
REST · OpenAPI4
CLI1
Credentials
xAI API keybearerGet token ↗

Sign in to the xAI Console, then open API Keys and create an API key. Use it as a bearer token in the Authorization header: Bearer <your xAI API key>.

xAI management keybearerGet token ↗

Sign in to the xAI Console, then go to Settings → Management Keys and create a management key. Use it as a bearer token in the Authorization header: Bearer <your Management API Key>.

xAI ephemeral client secretbearer

Have your server call POST https://api.x.ai/v1/realtime/client_secrets using your regular xAI API key to mint a short-lived client secret, then pass that secret to your browser or mobile app for Voice Agent / Realtime connections. These tokens are created from the API described in Ephemeral Tokens.

xAI mTLS client certificate and private keycompound

mTLS is an enterprise feature. Email support@x.ai with your team ID from the xAI Console, your CA certificate in PEM format, and the Common Name (CN) your client certificates use. After xAI enables mTLS for your team, use your client certificate and private key on requests to https://mtls.api.x.ai alongside a normal xAI API key.

conventions · 0/8 published

Publish these signals → /publishing