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.
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.
- xAI Docs MCP Serverdiscovered
- xAI Inference REST APIdiscovered
- xAI Management REST APIdiscovered
- xAI Realtime WebSocket APIdiscovered
- xAI Inference REST API (mTLS endpoint)discovered
- Grok Build CLIdiscovered
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>.
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>.
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.
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
- integrations.json✗
/.well-known/integrations.json - llms.txt✗
/llms.txt - API catalog✗
/.well-known/api-catalog - OpenAPI document✗
/api/schema/, /openapi.json, /swagger.json, /api/openapi.json, or /v1/openapi.json - MCP server card✗
/.well-known/mcp/server-card.json - OAuth protected resource✗
/.well-known/oauth-protected-resource - Agent card✗
/.well-known/agent-card.json - Agent skills✗
/.well-known/agent-skills/index.json
Publish these signals → /publishing