Skip to content
Docs

xAI

xAI is cataloged under AI & LLM. Publicus ships this entry, so you connect the service by picking it from the catalog rather than describing its API yourself. The vendor’s own documentation is at https://docs.x.ai/overview.

Auth system Type
xAI API key API key

Each linked auth system has a guide with the steps for getting the credential.

xAI’s REST API: the Responses API, legacy Chat Completions, an Anthropic-compatible Messages endpoint, image and video generation, embeddings, files, collections search, tokenization and model listing.

Capability What it covers
responses Generate responses with Grok models, including server-side tools, stored responses and compaction (POST /v1/responses).
chat_completions Generate chat completions on the legacy OpenAI-compatible endpoint, or through the Anthropic-compatible Messages endpoint (POST /v1/chat/completions, POST /v1/messages).
image_video_generation Generate and edit images and videos with Grok Imagine (POST /v1/images/generations, /v1/images/edits, /v1/videos/generations, /v1/videos/edits, /v1/videos/extensions).
files Upload, list, download and delete files, and publish them at public URLs (/v1/files).
list_models List and read the models available to the key, with their pricing (GET /v1/models, /v1/language-models, /v1/image-generation-models, /v1/video-generation-models, /v1/embedding-models).