If you used OpenRouter's OpenAI-compatible API, migration matches From OpenAI — the catalog shape is already OpenRouter-like.
Align
| Item | OpenRouter | RouterBrain |
|---|---|---|
| Chat | POST /v1/chat/completions | Same path, different host |
| Models | GET /v1/models, data[] | Same shape |
model | Catalog id | Same |
curl -sS "https://51kik.com/v1/models"
Code changes
- Replace provider / endpoint listing calls with
GET /modelsand pickmodel. - Drop OpenRouter-only headers or paths; otherwise follow From OpenAI.
Keys and billing
- RouterBrain console keys, not OpenRouter keys.
- Pricing/usage in RouterBrain console.
SDK
Replace OpenRouter SDK with:
- OpenAI SDK +
baseURL: https://51kik.com/v1, or @routerbrain/sdk(SDK overview)