Migrate
From OpenRouter
Move OpenRouter traffic to plaingateway.
plaingateway uses OpenRouter's paths, fields, response shapes and errors, so most clients need two changes.
- Change the base URL from
https://openrouter.ai/api/v1tohttps://api.plaingateway.com/api/v1. - Use a plaingateway key (
sk-pg-v1-...). - Check that each model ID you use is in GET /models. An ID the gateway does not route returns 400.
- Check the variants you use.
:floorand:nitrowork. Any other suffix, such as:free,:thinking,:extendedor:online, returns 400 unless the full ID is itself a routed model. - Remove
pluginsandtransforms. Any value other thannullreturns 400. - Keep only these
providerfields:order,only,ignore,sort,allow_fallbacks,data_collection,zdr,quantizations,max_price(withpromptandcompletion). Any other field returns 400.
To estimate savings, paste your usage into /migrate. It shows what the same tokens cost on OpenRouter and on plaingateway, model by model.