SpyBara
Go Premium

rest-api-reference/inference.md 2026-10-19 23:59 UTC to 2026-10-20 23:01 UTC

This page contains 6 additions and 6 deletions.

2026
Thu 8 23:58 Tue 20 23:01

API Reference

Overview

The SpaceXSI REST API is compatible with the OpenAI REST API. This reference is generated from the OpenAPI specification and organised by resource.

Base URLs and authentication

API Base URL Authenticate with
Inference (responses, chat completions, images, videos, voice, files, batches, models) https://api.x.ai Authorization: Bearer <API key>
Collections management https://management-api.x.ai Authorization: Bearer <Management API key>
Collections search https://api.x.ai Authorization: Bearer <API key>
Management (API keys, teams, billing, audit) https://management-api.x.ai Authorization: Bearer <Management API key>

API keys are created on the API Keys page of the SpaceXSI Console. Management keys are created on the Management Keys page; see Using Management API.

Inference API

Management-key APIs

For status codes and their likely causes, see Debugging Errors.