RouterBase is an OpenAI-compatible API gateway that lets developers call many AI models from one base URL: https://routerbase.com/v1.
This cookbook collects practical tutorials, copy-ready prompts, and small examples for teams evaluating RouterBase in real applications.
Static site:
https://routerbase.github.io/routerbase-cookbook/
- Use RouterBase as an OpenAI-compatible API gateway
- Switch models without rewriting application code
- Import RouterBase into Postman, Bruno, or Insomnia
examples/node/routerbase-fetch.mjs: dependency-free Node.js helper for chat completions and model listing.examples/python/routerbase_cookbook.py: dependency-free Python helper using the standard library.
Run local checks:
npm run verifyThese drafts are written for content platforms and can be published after account review:
article-drafts/devto-openai-compatible-routerbase.mdarticle-drafts/hashnode-single-base-url.md
MIT