Smart Routing
Quick Start

Documentation

Everything you need to integrate AuzHub into your applications.

Authentication

All API requests require an Authorization header with your Bearer token:

Authorization: Bearer sk-auzhub-your-api-key

Get your API key from the AuzHub Console. Keep it secret — treat it like a password.

Base Endpoint

Send all requests to our unified endpoint:

POST https://api.auzhub.com/v1/chat/completions
GET/v1/models
POST/v1/embeddings
POST/v1/completions

Making Your First Request

Here's a simple example using curl to create a chat completion:

curl -X POST https://api.auzhub.com/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4o",
    "messages": [
      {"role": "system", "content": "You are a helpful assistant."},
      {"role": "user", "content": "Hello, AuzHub!"}
    ],
    "max_tokens": 1024,
    "stream": true
  }'

Response Format

{
  "id": "chatcmpl-auzhub123456",
  "object": "chat.completion.chunk",
  "created": 1704067200,
  "model": "gpt-4o",
  "choices": [
    {
      "index": 0,
      "delta": {
        "content": "Hello! I'm AuzHub, your unified AI platform."
      },
      "finish_reason": null
    }
  ],
  "usage": {
    "prompt_tokens": 25,
    "completion_tokens": 12,
    "total_tokens": 37
  }
}

Note: AuzHub uses the OpenAI-compatible API format. You can use any OpenAI-compatible SDK or tool without modification — just change the base URL and add your AuzHub API key.

Supported Clients & Tools