ComfyUI Node
OpenRouter Models
Query and filter available models from OpenRouter's API. Filter by text, sort by name/pricing/context length, and view detailed model information.
OpenRouter Models
- models
- status
◄api_key►
◄filter_textfree►
◄sort_byname►
◄sort_orderascending►
CategoryOpenRouter
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| api_key | STRING | ⚠️ Your OpenRouter API key from https://openrouter.ai/keys (Note: key will be visible - take care when sharing workflows) | |
| filter_text | STRING | free | Filter models by text. Examples: 'free' for free models (pricing=$0), 'gpt' for GPT models, 'free claude' for free Claude models. Leave empty to show all models. Multiple terms are AND-ed together. |
| sort_by | COMBO | name | Sort models by: 'name' (alphabetically), 'pricing' (cost per token), or 'context_length' (maximum input size in tokens). |
| sort_order | COMBO | ascending | Sort order: 'ascending' (A-Z, low to high) or 'descending' (Z-A, high to low). |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| models | STRING | — |
| status | STRING | — |