XuanShu API

Usage and billing

Query key usage and understand subscription, pay-as-you-go, and enterprise invoicing boundaries.

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/usage -H "Authorization: Bearer <YOUR_API_KEY>"

Usage and billing

GET /v1/usage returns a usage view for the current key; actual balance, subscription quota, multipliers, and billing are shown in the console.

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.