Base URLs
Choose the correct OneRouter base URL for each protocol.
Base URLs
Use the shortest protocol-specific base URL that matches your client. OpenAI-compatible SDKs use https://onerouter.com/v1. Claude native requests use https://onerouter.com with /v1/messages. Gemini native requests use https://onerouter.com/v1beta or the /gemini/* compatibility prefix.
| Parameter | Type | Required | Description |
|---|---|---|---|
| OpenAI-compatible | base URL | required | https://onerouter.com/v1 |
| Claude native | base URL | required | https://onerouter.com |
| Gemini native | base URL | required | https://onerouter.com/v1beta |
Authentication
Send your OneRouter API key with every request. OpenAI-compatible clients should use Authorization: Bearer YOUR_API_KEY. Gemini-native clients may also use x-goog-api-key. Keys are issued from the console and use the OneRouter key format.
Authorization: Bearer YOUR_API_KEY