API examples
Service URL: https://api.xuo.cc.
OpenAI-compatible SDK Base URL: https://api.xuo.cc/v1.
Start with developer integration, or use the Python SDK or Node.js SDK.
See Image and video APIs for image generation, image editing, and video task workflows. Supported fields and values vary by model.
Authentication
Pass your Xuo key in the request header:
http
Authorization: Bearer YOUR_XUO_API_KEYList available models
macOS / Linux shell:
bash
export XUO_API_KEY='YOUR_XUO_API_KEY'
curl https://api.xuo.cc/v1/models \
-H "Authorization: Bearer $XUO_API_KEY"Windows PowerShell:
powershell
$env:XUO_API_KEY = 'YOUR_XUO_API_KEY'
Invoke-RestMethod -Uri 'https://api.xuo.cc/v1/models' `
-Headers @{ Authorization = "Bearer $env:XUO_API_KEY" }Replace the key placeholder. Group permissions and key restrictions affect the list.
Chat Completions
Replace the model placeholder with an available model supporting this endpoint:
bash
curl https://api.xuo.cc/v1/chat/completions \
-H "Authorization: Bearer $XUO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"YOUR_AVAILABLE_MODEL_ID","messages":[{"role":"user","content":"Hello"}]}'Responses
For a model supporting Responses:
bash
curl https://api.xuo.cc/v1/responses \
-H "Authorization: Bearer $XUO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"YOUR_AVAILABLE_MODEL_ID","input":"Hello"}'Check Usage Logs after your first request. Local documentation previews do not mean the production domain is deployed.
