XuanShu API
API authentication
Use Bearer, x-api-key, and x-goog-api-key authentication on public APIs.
Last verified:
Connection and authentication
Unified OpenAI-compatible Base URL: https://www.xuanshuapi.com/v1
OpenAI-compatible APIs use Authorization: Bearer <YOUR_API_KEY>; Claude Messages also accepts x-api-key: <YOUR_API_KEY>; Gemini v1beta uses x-goog-api-key: <YOUR_API_KEY>.
curl https://www.xuanshuapi.com/v1/models \
-H "Authorization: Bearer <YOUR_API_KEY>"API authentication
Never place keys in browser code, repositories, logs, or public examples; select the header required by the protocol.
Models, multipliers, quota, and usage depend on the current key and console data.
Next steps
Available models, multipliers, quotas, and some advanced capabilities depend on the current key and console configuration.