Base URL

All API requests should use this base URL:
https://api.xtrix.workers.dev/v1

Configuration Examples

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.xtrix.workers.dev/v1"
)

Important Notes

  • Always use HTTPS
  • Include /v1 at the end
  • No trailing slash

Full Endpoint URLs

  • Chat: https://api.xtrix.workers.dev/v1/chat/completions
  • Images: https://api.xtrix.workers.dev/v1/images/generations
  • Models: https://api.xtrix.workers.dev/v1/models