Use the OpenAI SDK with multiple AI models
Point an OpenAI SDK client at the OmniRouters API endpoint and select an enabled model from the model catalog. The OpenAI-compatible chat endpoint is POST /v1/chat/completions; model IDs and supported features vary.
Python quick start
from openai import OpenAI
client = OpenAI(
base_url="https://www.omnirouters.com/v1",
api_key="YOUR_API_KEY",
)
response = client.chat.completions.create(
model="YOUR_ENABLED_MODEL",
messages=[{"role": "user", "content": "Hello"}],
)
Create an API key in your account and replace the example model ID with one listed in the catalog. Check current pricing and model availability before sending production traffic.
New accounts start without a default free balance. The minimum top-up is $10.