Introduction

Xtrix provides an OpenAI-compatible API that allows you to integrate AI capabilities into your applications. Simply change your base URL and API key to start using our service.

Quick Start

1

Get Your API Key

Sign up and get your API key from the dashboard.
2

Set Base URL

https://api.xtrix.workers.dev/v1
3

Make Your First Request

Use any OpenAI-compatible library with your API key.

Example

curl https://api.xtrix.workers.dev/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "claude-3-5-sonnet-20241022",
    "messages": [
      {
        "role": "user",
        "content": "Hello!"
      }
    ]
  }'

Features

  • OpenAI Compatible - Works with existing OpenAI SDKs
  • Simple Integration - Just change the base URL
  • Pay As You Go - Only pay for what you use

Next Steps