Skip to main content
Base URL: https://api.orbitrage.ai/v1 · Auth: Authorization: Bearer orb_…
The gateway implements the OpenAI Responses API (used by the OpenAI Agents SDK) by adapting it to Chat Completions internally — so it’s routed, credit-gated, and traced exactly like any other call.

Request

string
required
auto to route, or a pinned model id.
string | array
required
The input — a string, or an array of input items (messages, function calls, tool results). Mapped to messages internally.
string
System instructions, mapped to a system message.
array
Tool definitions. Function-call items in the input are coalesced into a single assistant message with tool_calls.
number
Maps to max_tokens.

Example

Using the OpenAI Agents SDK

Point the Agents SDK’s client at https://api.orbitrage.ai/v1. The gateway also absorbs the SDK’s built-in tracing calls (returning a harmless no-op), so you won’t see 401s from its tracer. Disable the SDK’s own tracing to avoid duplicate work — Orbitrage already traces every call:
For xAI Grok models that use native tools (e.g. web search), the gateway can forward to xAI’s native Responses endpoint while still authenticating, gating credits, and recording billing.

Response

A Responses-API-shaped object. As with Chat Completions, the routing decision, cost, tokens, and latency are recorded to your telemetry.