Base URL, authentication, headers, and errors for the Orbitrage gateway.
The Orbitrage gateway is OpenAI-compatible. If your code already talks to
the OpenAI API, point it at Orbitrage by changing one base URL — the request and
response bodies are byte-for-byte the OpenAI shapes.
The gateway speaks the OpenAI Chat Completions and Responses APIs, a model
catalog endpoint, and (through the engine) images and audio. To use Claude,
Gemini, Grok, or any other model, just name it in a chat-completions call —
Orbitrage routes and translates to that provider for you.
All optional — set them to enrich attribution. The SDK sets the run id and (when
configured) the end-user id automatically.
Header
Purpose
x-orbitrage-end-user-id
Attribute the call to one of your end-users.
x-orbitrage-run-id
Group calls into one session/run.
x-orbitrage-session-id
A session identifier within a run.
x-orbitrage-workflow-id
Override the key’s workflow (advanced).
x-orbitrage-customer-id / x-orbitrage-tenant-id
Multi-tenant identifiers.
x-orbitrage-parent-request-id
Parent span, to build call graphs.
x-orbitrage-step-index
Position of this call in a sequence.
x-orbitrage-prompt-id
Render a registered prompt by id (overrides messages/model).
Don’t send x-orbitrage-user-id. It’s the gateway’s authoritative account
identity and is signature-protected — sending your own value returns 403.
Use x-orbitrage-end-user-id instead.
A standard W3C traceparent header is also honored — its trace id seeds the run
id and its span id seeds the parent request id when you don’t set them explicitly.