---
title: "From OpenRouter"
description: "Move OpenRouter traffic to plaingateway."
---

# From OpenRouter

plaingateway uses OpenRouter's paths, fields, response shapes and errors, so most clients need two changes.

1. Change the base URL from `https://openrouter.ai/api/v1` to `https://api.plaingateway.com/api/v1`.
2. Use a plaingateway key (`sk-pg-v1-...`).
3. Check that each model ID you use is in [GET /models](../api/models.md). An ID the gateway does not route returns 400.
4. Check the variants you use. `:floor` and `:nitro` work. Any other suffix, such as `:free`, `:thinking`, `:extended` or `:online`, returns 400 unless the full ID is itself a routed model.
5. Remove `plugins` and `transforms`. Any value other than `null` returns 400.
6. Keep only these `provider` fields: `order`, `only`, `ignore`, `sort`, `allow_fallbacks`, `data_collection`, `zdr`, `quantizations`, `max_price` (with `prompt` and `completion`). Any other field returns 400.

To estimate savings, paste your usage into [/migrate](https://plaingateway.com/migrate). It shows what the same tokens cost on OpenRouter and on plaingateway, model by model.
