API reference
API overview
Two compatible surfaces on one key: OpenAI-style chat completions and Anthropic-style messages.
Base URLs
| SDK | Base URL |
|---|---|
| OpenAI and compatible | https://api.useorbix.app/v1 |
| Anthropic | https://api.useorbix.app |
Authentication
Send your key as a bearer token. The Anthropic surface also accepts x-api-key.
bash
Authorization: Bearer orb_live_…Endpoints
| Method | Path | Compatible with |
|---|---|---|
POST | /v1/chat/completions | OpenAI Chat Completions |
POST | /v1/messages | Anthropic Messages |
GET | /v1/models | OpenAI Models list |
Model ids
Ids are provider/model, for example anthropic/claude-sonnet-5.5 or google/gemini-4-argon. Both surfaces accept any model, so you can call GPT through /v1/messages or Claude through /v1/chat/completions.
Billing headers
Every response includes:
| Header | Meaning |
|---|---|
x-orbix-list-cost | Cost at list price, USD |
x-orbix-discount | Discount applied, 0 to 1 |
x-orbix-charged | Amount charged to your balance, USD |
x-orbix-pool-factor | Pool factor at the time of the request |
x-orbix-upstream | Upstream that served the request |
For streaming responses the same values are sent in the final event.