OpenRouter
One API for many language and image models from different providers, compatible with the OpenAI chat completions format, billed from prepaid credit.
Reviewed by adrian
on
OpenRouter routes requests to many models through one endpoint, https://openrouter.ai/api/v1/chat/completions. In my RSS news it serves both Claude Haiku for rating and writing and Nano Banana for title images.
- Structured output:
response_formatwith a JSON schema andstrict: true.provider.require_parameters: truelimits the request to providers that support every parameter sent. - Supported parameters differ per model and are listed under
supported_parametersinhttps://openrouter.ai/api/v1/models. A parameter the model does not support, together withrequire_parameters, leads to "No endpoints found" (404). - Images:
modalities: ["image", "text"]andimage_config.aspect_ratio; the image comes back as a base64data:URL inchoices[0].message.images. - Keys can get a spending limit, so a separate key per use can be limited and revoked on its own.
Based on
- RSS News with n8n and OpenRouter [feeds]
Used in
- RSS News with n8n and OpenRouter Guide: n8n reads security notices, a language model rates and rewrites them, and a restricted SSH script commits them to the Git repository of a static site.