Skip to content

OpenAI & Anthropic SDKs

There’s nothing to install beyond the official SDKs. Override the base URL and you’re done.

from openai import OpenAI
client = OpenAI(
base_url="https://api.opengateway.one/oss/v1", # includes /v1
api_key="YOUR_KEY",
)
resp = client.chat.completions.create(
model="claude-turbo-hub-qwen3-coder",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)
from anthropic import Anthropic
client = Anthropic(
base_url="https://api.opengateway.one/oss", # NO /v1
api_key="YOUR_KEY",
)
msg = client.messages.create(
model="claude-turbo-hub-qwen3-coder",
max_tokens=512,
messages=[{"role": "user", "content": "Hello!"}],
)
print(msg.content[0].text)

The thin branded TypeScript and Python wrappers preconfigure the base URL, lane, headers, model aliases, and a single effort knob — while re-exporting the full stock clients so you never lose API access.