X

xAI Inference REST API

REST discovered

Details
URL
https://api.x.ai
Docs
https://docs.x.ai/developers/rest-api-reference/inference
Authentication
xAI API key bearer discovered Get token ↗
Authorization: Bearer <credential>

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>.