Use the API from OmniRoute, scripts and IDEs
An OpenAI-compatible API to the same models, included with Pro and above.
Who can use it
- The API comes with Pro, Plus, Max and every seat on a team. On Free it is off: requests from other tools are refused until you choose a plan.
- MegaBrain for Mac is not the API: it works on Free too, paid from your credits.
- API requests count toward your plan's limits, the same frontier and MegaBrain Core limits the app uses.
Connect a tool
- OmniRoute: add MegaBrain as a provider and sign in. Your browser opens getmegabrain.com with a code; check it and press Authorize.
- Scripts and SDKs: copy your key from the API key page and send it as "Authorization: Bearer <key>". Any OpenAI SDK works with the base URL https://getmegabrain.com/api/gateway/v1.
- Use the model id mb-auto/plan for Auto, or any id from GET /models at the same base URL.
Keep the key safe
Anyone with your key can use your plan. If it leaks, reset it on the API key page; the old key stops working at once.