Skip to content
docs

Waibee Router

Waibee Router is a gateway to LLMs: one API and one key for models from different providers. It accepts requests in OpenAI Chat Completions (POST /v1/chat/completions), Anthropic Messages (POST /v1/messages), and OpenAI Responses (POST /v1/responses) format, so a client that already works with these APIs switches to Waibee by changing the base URL and the API key.

All three formats share one catalog and one balance. Which models and capabilities are available depends on the request format and the model.

FormatPathWho it is for
OpenAI Chat Completions/v1/chat/completionsThe default: almost every client and library understands it
Anthropic Messages/v1/messagesClients built on the Anthropic SDK, including Claude Code
OpenAI Responses/v1/responsesClients on the newer OpenAI format: Codex CLI, Agents SDK, client.responses.create()

Chat Completions and Responses are both OpenAI formats, and the same official SDK covers both: client.chat.completions.create() and client.responses.create(). Responses is built around items instead of messages, so reasoning, tool calls, and text arrive as separate items, each with its own status.

If your client understands Chat Completions and you have no preference, use it: it is the most widely supported. Use Responses if your tool speaks it or you need items.

How to connect Waibee to Waibee Code, Claude Code, Codex CLI, OpenCode, and other tools and SDKs: Integrations.

  • Web search: the model searches the web on its own, and the router runs the search for it. Works on all three formats.
  • Autorouting: the router picks a model for the request.
  • Tool calling: functions, the call loop, and streaming.
  • Structured outputs: a response that strictly follows a JSON Schema.
  • Reasoning: reasoning levels and what they cost.
  • Images and PDFs: attachments in a request.
  • Streaming: streamed responses and errors mid-stream.
  • Prompt caching: reusing a stable prefix.
  • Embeddings: text vectors in OpenAI Embeddings format on POST /v1/embeddings.
  • Decisions (System One): typed responses from the TypeSafe Jev model on POST /v1/systemone.
  • Plugins: DLP, which checks a request for sensitive data.
  • Cookbook: ready-made code for common tasks, from tool calling to timeouts and retries in a service.
  • Migrating to Waibee: what to change in your code when you move from OpenAI, Anthropic, or another gateway.
  • Models: IDs, the catalog, and prices.
  • Tokens and usage: counters and cost estimates.
  • Limits: request size, rate, response time, and retries.
  • Errors: error formats, codes, and what to do about them.
  • FAQ: common questions.
  • API Reference: the full reference of endpoints, parameters, and errors.
  • Glossary: terms used across the documentation.