Skip to content
docs

OpenAI-compatible clients

Chat Completions and Responses clients connect once you set the base URL and API key. On Responses, send the history with every request; there is no server-side state. You set two values:

  • Base URL: https://api.waibee.com/v1
  • API key: sk_live_...

OpenAI has two formats, and the router serves both:

FormatEndpointSDK method
Chat CompletionsPOST /v1/chat/completionsclient.chat.completions.create()
ResponsesPOST /v1/responsesclient.responses.create()

Which one to use: router overview. How the second one works: Responses format.

Tools that use the Anthropic format have a separate page.

python
from openai import OpenAI
client = OpenAI(
base_url="https://api.waibee.com/v1",
api_key="sk_live_...",
)
node
import OpenAI from 'openai';
const client = new OpenAI({
baseURL: 'https://api.waibee.com/v1',
apiKey: process.env.WAIBEE_API_KEY,
});

One client serves both endpoints:

python
chat = client.chat.completions.create(
model="anthropic/claude-sonnet-4.6",
messages=[{"role": "user", "content": "ping"}],
)
resp = client.responses.create(
model="openai/gpt-5.1-codex",
input="ping",
)
print(resp.output_text)
Terminal window
curl https://api.waibee.com/v1/chat/completions \
-H "Authorization: Bearer $WAIBEE_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "model": "anthropic/claude-sonnet-4.6", "messages": [{ "role": "user", "content": "ping" }] }'

A Responses request differs in the path and the body:

Terminal window
curl https://api.waibee.com/v1/responses \
-H "Authorization: Bearer $WAIBEE_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "model": "openai/gpt-5.1-codex", "input": "ping" }'

Tools such as Cline and Continue take a custom OpenAI-compatible endpoint in their settings. The general recipe:

SettingValue
Provider / API typeOpenAI-compatible
Base URLhttps://api.waibee.com/v1
API keysk_live_...
Model<provider>/<model>, for example anthropic/claude-sonnet-4.6