Base URL
Make a request
Send a chat completion request:stream to true:
Endpoints
OpenAI compatibility
Arbytra supports the same request/response format as OpenAI. Switch to Arbytra by changing two values:- Base URL:
https://api.openai.com/v1→https://api.arbytra.com/v1 - API Key: Use your Arbytra API key (starts with
ak_)
Arbytra extensions
Arbytra responses carry additional fields beyond the OpenAI format.Response extensions
Every chat completion response includes arouting_metadata object with routing and cost details:
warnings carries one or more structured entries:
Request extensions
Pass routing options to optimize your requests via thegateway field:
Request metadata
Attach custom metadata to requests for tracking and observability viagateway.metadata. Arbytra strips this metadata before forwarding to the provider.
Response headers
Every response carries custom headers. See Response headers for the full reference.Authentication
Learn how to authenticate your requests