OpenRouter Provider Routing

Hi, does anyone have experience with OpenRouter Provider Routing in n8n?
OpenRouter Provider Routing allows to optimize routing for price, token throughput, etc.
Example:

model: "anthropic/claude-3.7-sonnet:floor"

Describe the problem/error/question

How to get work OpenRouter Provider Routing in n8n especially with OpenRouter-Chat-Model-Node.

What is the error message (if any)?

Node-Parameter Error

Please share your workflow

Share the output returned by the last node

./.

Information on your n8n setup

  • n8n version: 1.99.1
  • Database (default: SQLite): PostgreSQL
  • n8n EXECUTIONS_PROCESS setting (default: own, main): own, main
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Debian 12.7; proxmox

There is a way, but it’s not fine

Hi there wupperpi, I think a few months ago I submitted a issue on the official N8N Github talking about this feature, its dumb that we aren’t able to select a provider on the OpenRouter Node, and yes, it sucks that the only way is using a HTTP Request, because that is really worthless when it comes to connect it as a model to AI Agents, I really hope this gets fixed in the near future.

Hi @wupperpi
I think it’s just working!
Just ignore the n8n warning and continue the execution, it will still work

I tested it on my end using the :nitro dynamic variant with another model as proof, and it worked. It selected the provider according to throughput, which is exactly what the :nitro variant is meant to do.
you can check your logs to see
image

So, you can ignore the n8n warning, and the dynamic variants should work as expected, in your case :floor

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.