Skip to content
WRAITHERIXDocsENRU

OpenAI SDK

Set the base URL to https://api.wraitherix.com/v1 and use your WRAITHERIX key. Every model — including Claude and Gemini — is available through the OpenAI SDK.

Terminal window
pip install openai
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.wraitherix.com/v1",
api_key=os.environ["WRAITHERIX_API_KEY"],
)
r = client.chat.completions.create(
model="claude-opus-5-5",
messages=[{"role": "user", "content": "Hello!"}],
)
print(r.choices[0].message.content)

The OpenAI SDKs read these automatically, so many existing apps work with no code change:

Terminal window
export OPENAI_BASE_URL="https://api.wraitherix.com/v1"
export OPENAI_API_KEY="$WRAITHERIX_API_KEY"

Most apps that let you set a “custom OpenAI endpoint” (Open WebUI, LibreChat, LobeChat, Chatbox, n8n, Flowise, Dify…) work with:

Field Value
Base URL / API host https://api.wraitherix.com/v1
API key your sk-... key
Model any ID from the catalogue