XuanShu API documentation

Find the right guide from tool setup to platform management

Find guides for Claude Code, Codex, Gemini CLI, the OpenAI SDK, compatible APIs, models, streaming connections, usage, and billing.

Three article groups · Clear paths · Practical answers

Client setup guides

Pick your client and go from install to a verifiable first request, with one-line scripts, manual setup, and troubleshooting.

API / SDK

Choose a compatible API or SDK path to connect existing code to XuanShu API.

Using the platform

Understand model selection, streaming connections, usage, billing, and capability boundaries.