Proxy Interface

This page is for integrators and covers the unified Router entry plus commonly used query routes.


Base Information

  • Base URL: https://api.xairouter.com
  • Auth: Authorization: Bearer sk-Xvs...
export BASE_URL="https://api.xairouter.com"
curl ${BASE_URL}/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-5-nano","messages":[{"role":"user","content":"hi"}]}'

Compatible Proxy Endpoints

OpenAI-compatible

  • /v1/chat/completions
  • /v2/chat/completions
  • /chat/completions
  • /v1/responses
  • /responses
  • /v1/embeddings
  • /embeddings
  • /v1/images/generations
  • /v1/images/edits
  • /v1/images/variations
  • /v1/audio/transcriptions
  • /v1/audio/translations
  • /v1/realtime/client_secrets
  • /v1/realtime (WebSocket)
  • /v1/moderations
  • /v1/threads
  • /v1/files
  • /v1/models, /models

Claude-compatible

  • /v1/messages
  • /messages

Dashboard Query Endpoints (same domain, GET)

  • /dashboard/status
  • /dashboard/info
  • /dashboard/live
  • /dashboard/bill
  • /dashboard/logs
  • /dashboard/news
  • /dashboard/models

Usage Notes

  • Integrators only need to call the compatible routes and use the API Key assigned by the platform.
  • Upstream selection, governance rules, failover, and resource scheduling are handled by the platform and do not need to be understood by ordinary clients.
  • If you need to manage providers, policies, or owner-level configuration, use the Admin Console.