UniterRouter
API ReferenceOpenAI Compatible

OpenAI Compatible

OpenAI API proxy - Use GPT-4, GPT-4o, GPT-3.5-turbo with existing OpenAI SDK. Drop-in replacement for ChatGPT API with access to 200+ LLM models.

OpenAI Compatible API

UniterRouter provides full compatibility with OpenAI's API, allowing you to use any OpenAI SDK or library with 200+ models from multiple providers.

Quick Start

Simply change your base URL to use UniterRouter:

from openai import OpenAI

client = OpenAI(
    base_url="https://api.uniterouter.ai/v1",
    api_key="your_uniterouter_api_key",
)

response = client.chat.completions.create(
    model="gpt-4o",  # or any supported model
    messages=[{"role": "user", "content": "Hello!"}]
)

Drop-in Replacement: Any application using OpenAI SDK can switch to UniterRouter by changing only the base URL and API key.

Supported Endpoints

EndpointMethodDescription
/v1/chat/completionsPOSTCreate chat completions
/v1/embeddingsPOSTGenerate text embeddings
/v1/images/generationsPOSTGenerate images from text
/v1/audio/transcriptionsPOSTTranscribe audio to text
/v1/modelsGETList available models

Features

SDK Examples

Python

pip install openai

TypeScript/Node.js

npm install openai

Environment Variables

export OPENAI_API_KEY="your_uniterouter_api_key"
export OPENAI_BASE_URL="https://api.uniterouter.ai/v1"

How is this guide?