[Integrations](https://spiral.ai/integrations) › [n8n](https://spiral.ai/integrations/n8n) › [OpenRouter model search](https://spiral.ai/integrations/n8n/openrouter-model-search)

# How to Use OpenRouter model search in n8n

Returns matching models from OpenRouter's catalog for comparison. Use it to build a shortlist, then inspect individual model specifications and serving endpoints.

|  |  |
| --- | --- |
| Model | OpenRouter model search |
| Available through | Alexandria |
| Category | Developer |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with OpenRouter model search in n8n

- Every Monday at 9am: use OpenRouter model search to look this up and give me the result as a table.
- Pull the latest numbers from OpenRouter model search and tell me what changed since last week.
- Check OpenRouter model search and summarize what you find in three bullet points.
- Pull the newest data from OpenRouter model search and give me the result as a table.
- Check OpenRouter model search every morning and tell me only when something changed.

## How to set up OpenRouter model search in n8n

Pick the way that suits you. Each takes about two minutes.

### Use the Spiral skill

1. **Send n8n this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use Spiral's MCP server

1. **Create a key**: Create a key under API keys in the console.

2. **Add an MCP Client node**: In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

```text
https://api.spiral.ai/mcp
```

3. **Pick a tool**: The node lists Spiral's tools. In an MCP Client node pick one, such as `run`, and give it its arguments:

```json
{
  "provider": "fal",
  "model": "fal-ai/flux/schnell",
  "input": { "prompt": "a lighthouse at dawn" },
  "wait": true
}
```

4. **Run OpenRouter model search in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds OpenRouter model search, prices it and runs it each time the step fires.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run OpenRouter model search**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "openrouter-ai/model-marketplace/search_models",
    "input": {
      "q": "<q>"
    }
  }'
```

Then paste one of the prompts above: n8n finds OpenRouter model search on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/n8n

## OpenRouter model search tools and prices

- [OpenRouter · Search models](https://spiral.ai/tools/alexandria/openrouter-ai/model-marketplace/search_models) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| q |  | — | Free-text match on model name or slug. |
| zdr |  | — | Only models with a zero-data-retention endpoint. |
| arch |  | — | Model family filter, e.g. `GPT`, `Claude`, `Llama`. |
| sort | most-popular, newest, top-weekly, pricing-low-to-high, pricing-high-to-low, context-high-to-low, throughput-high-to-low, latency-low-to-high, intelligence-high-to-low, coding-high-to-low, agentic-high-to-low, design-arena-elo-high-to-low | — | Server-side order. |
| limit | 1 to 100 | 25 | limit |
| offset | 0 to … | 0 | Records to skip; use `next_offset` from the previous page. |

## What can you do with OpenRouter model search in n8n?

Produce a recurring OpenRouter model review that highlights changes relevant to a standing shortlist. A scheduled agent can compare newly retrieved catalog evidence with its previous observations and report changes in specifications or measurements.

### Choose a model for document summaries

Find candidates, compare their context windows and output capabilities, inspect serving limits, and review usage statistics before selecting models for a document-summary evaluation.

### Prepare a model migration review

Search for replacements, review the author's catalog, compare model details and pricing data, and summarize the provider policies relevant to the shortlist.

### Maintain an internal model comparison

Refresh a shortlist with published specifications, pricing data, usage statistics, and serving endpoint measurements. Use the documentation to keep metric definitions consistent.

### Prepare a provider policy review

Read OpenRouter's policy documentation, review its provider directory, find candidate models, and inspect the specific serving endpoints before preparing questions for a policy review.

### Write a model selection brief

Combine catalog search, an author's listed models, pricing data, usage statistics, provider policies, and documentation into a source-based brief for a product team.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All n8n guides](https://spiral.ai/integrations/n8n)

## OpenRouter model search in other agents

- [Amp](https://spiral.ai/integrations/amp/openrouter-model-search)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/openrouter-model-search)
- [Claude](https://spiral.ai/integrations/claude-desktop/openrouter-model-search)
- [Claude Code](https://spiral.ai/integrations/claude-code/openrouter-model-search)
- [Cline](https://spiral.ai/integrations/cline/openrouter-model-search)
- [Codex](https://spiral.ai/integrations/codex/openrouter-model-search)
- [Cursor](https://spiral.ai/integrations/cursor/openrouter-model-search)
- [Devin](https://spiral.ai/integrations/devin/openrouter-model-search)
- [dots](https://spiral.ai/integrations/dots/openrouter-model-search)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/openrouter-model-search)
- [Gemini](https://spiral.ai/integrations/gemini/openrouter-model-search)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/openrouter-model-search)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/openrouter-model-search)
- [goose](https://spiral.ai/integrations/goose/openrouter-model-search)
- [Grok](https://spiral.ai/integrations/grok/openrouter-model-search)
- [Grok Build](https://spiral.ai/integrations/grok-build/openrouter-model-search)
- [Hermes](https://spiral.ai/integrations/hermes/openrouter-model-search)
- [Instinct](https://spiral.ai/integrations/instinct/openrouter-model-search)
- [Manus](https://spiral.ai/integrations/manus/openrouter-model-search)
- [Muse](https://spiral.ai/integrations/muse/openrouter-model-search)
- [Muse Code](https://spiral.ai/integrations/muse-code/openrouter-model-search)
- [Notion](https://spiral.ai/integrations/notion/openrouter-model-search)
- [OpenClaw](https://spiral.ai/integrations/openclaw/openrouter-model-search)
- [opencode](https://spiral.ai/integrations/opencode/openrouter-model-search)
- [Perplexity](https://spiral.ai/integrations/perplexity/openrouter-model-search)
- [Raycast](https://spiral.ai/integrations/raycast/openrouter-model-search)
- [VS Code](https://spiral.ai/integrations/vscode/openrouter-model-search)
- [Windsurf](https://spiral.ai/integrations/windsurf/openrouter-model-search)
- [Zapier](https://spiral.ai/integrations/zapier/openrouter-model-search)

## More n8n guides

- [OpenRouter model pricing data](https://spiral.ai/integrations/n8n/openrouter-model-pricing-data)
- [OpenRouter model usage statistics](https://spiral.ai/integrations/n8n/openrouter-model-usage-statistics)
- [OpenRouter model endpoint details](https://spiral.ai/integrations/n8n/openrouter-model-endpoint-details)
- [OpenRouter provider directory](https://spiral.ai/integrations/n8n/openrouter-provider-directory)
- [OpenRouter model details](https://spiral.ai/integrations/n8n/openrouter-model-details)
- [Oracle Cloud SKU pricing](https://spiral.ai/integrations/n8n/oracle-cloud-sku-pricing)

## Questions about OpenRouter model search in n8n

**Can n8n use OpenRouter model search?**

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run OpenRouter model search like any built-in tool.

**How much does OpenRouter model search cost in n8n?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your n8n plan is separate.

**Do I need an Alexandria account to use OpenRouter model search in n8n?**

You need no Alexandria account. n8n uses one Spiral API key for every tool, and Spiral runs OpenRouter model search on its own Alexandria account.

**How long does it take to set up OpenRouter model search in n8n?**

About two minutes: create a key, then add an MCP Client node, then pick a tool.

**Does n8n wait while OpenRouter model search runs?**

OpenRouter model search runs in the background. n8n starts the run, checks on it and gives you the json when it's ready.

**Does OpenRouter's default model list cover every output type?**

The documented default list covers text generation. OpenRouter also documents a broader listing across all modalities, including image, video, text, and speech.

**How quickly does OpenRouter update model information?**

OpenRouter says it publishes model information as soon as it confirms it. That statement does not establish a fixed hourly or daily refresh schedule.

**What time period do performance measurements cover?**

The routing guide describes rolling five-minute percentiles, while the endpoint response schema defines latency percentiles over 30 minutes. These are different measurement windows, so comparisons need to use the same window.

**Does the context window apply only to the input?**

Input and output share the context window. A long input therefore reduces the space available for the response, even when the model lists a larger maximum output ceiling.

**Are OpenRouter's coding and agentic benchmark fields still populated?**

The current schema says Artificial Analysis retired its Coding Index and Agentic Index. Both fields are null for every model.

