OpenRouter Models
AI-generatedSummary
Fetches OpenRouter’s model list and filters, sorts, and limits the results for use in a workflow.
Inputs
- Filter Options — Optionally search model names or IDs by case-insensitive substring; require selected input or output modalities; filter for reasoning or tool-calling support; set a maximum prompt price per million tokens or minimum context length; choose a sort order; and set a maximum result count. Defaults sort by model ID A–Z, with price and context filters and the limit disabled.
- Include Full Details — Defaults to true and returns each model’s full API metadata. When false, each result includes only id, name, context length, prompt and completion prices per million tokens, modality, and description.
- OpenRouter API credentials (required) — Provides the API key and optionally a base URL; the default base URL is https://openrouter.ai/api/v1.
Output shape
A list of n8n items, one per matching model.
Each item’s json is either the full model record or the reduced fields described above. The node requests GET /models once per input item and emits matching models for each; request errors are thrown unless Continue On Fail is enabled, in which case an error item is returned for that input.