If you used OpenRouter's OpenAI-compatible API, migration matches From OpenAI — the catalog shape is already OpenRouter-like.

Align

ItemOpenRouterRouterBrain
ChatPOST /v1/chat/completionsSame path, different host
ModelsGET /v1/models, data[]Same shape
modelCatalog idSame
curl -sS "https://51kik.com/v1/models"

Code changes

  • Replace provider / endpoint listing calls with GET /models and pick model.
  • 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)

Related

OpenAI compatibility