ToolWritingCodingResearchNew to AI · 10 min

xAI API for text generation and chat

A legacy endpoint for text-in, text-out interactions, supporting summarization, creative writing, Q&A, and coding.

GrokParaphrased
What
Chat Completions is a legacy endpoint offered by xAI for text-based AI interactions.
For

Summarizing articles, generating creative writing, answering questions, providing customer support, and assisting with coding tasks.

Pricing

Not specified in source.

Url

https://docs.x.ai/developers/model-capabilities/legacy/chat-completions

What it does and when to use it

The xAI Chat Completions API is a legacy endpoint for text-based AI tasks. It handles inputs and outputs for various applications like summarization, creative writing, and coding assistance.

Why it works

Provides a programmatic interface to access AI models for a wide range of text generation and understanding tasks.

When not to use it

New features will come to the Responses API first; migration is recommended.

Sources and credit

First seen on Subvolts Aug 24, 2026. Updated Sep 11, 2026. Spotted a problem? Tell us.

Where it shows up
Terms used

Endpoints

Related in the PlaybookPlaybook →

The Playbook: reusable how-tos, prompts, configs and tips pulled out of the news.

Questions people ask

Which AI tools does this work with?
The sources used it with Grok.
Where did this come from?
xAI (xAI Docs: Guides). Subvolts collected, normalized and credited it; the link above opens the original.