Two formats, one pipeline
Point whichever client you already have at the gateway. Neither format is a translation layer bolted onto the other.
Base URLs
| Format | Base URL | Header |
|---|---|---|
| OpenAI | https://api.magmarouter.com/v1 | authorization: Bearer rl-... |
| Anthropic | https://api.magmarouter.com | x-api-key: rl-... |
The Anthropic base takes no /v1 because the SDK appends it. The OpenAI base does, because the SDK appends only /chat/completions.
One pipeline underneath
Both routes share a single metering pipeline with a dialect per format. That means reserve, clamp, settle, receipts and logging behave identically whichever one you call, and a new format is a dialect rather than a second implementation.