# OpenRouter LLM Models and Prices Scraper (`talcoe/openrouter-models`) Actor

Get the full OpenRouter LLM catalog with context length, input and output price per million tokens, modalities and tool support, filtered by provider, keyword, modality, context size or max price, billed per result.

- **URL**: https://apify.com/talcoe/openrouter-models.md
- **Developed by:** [M Usama](https://apify.com/talcoe) (community)
- **Categories:** AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### Data source

Reads the public OpenRouter model catalog JSON at openrouter.ai/api/v1/models, fetched live on every run.

### What does OpenRouter LLM Models and Prices Scraper do?

You want to know which models exist, how much they cost and how much they can read. This Actor returns that list as a clean table: model id, provider, context length, input and output price per million tokens, input and output modalities, max output tokens, and flags for tool calling, reasoning and structured outputs. Filters keep the run small, and you pay per result returned.

### Why use it?

- Price comparison: sort every model by input or output price in USD per million tokens, no unit conversion needed.
- Model selection: find models with 200K or more context that accept images and support tools.
- Price monitoring: schedule a daily run and diff the dataset to catch new models, price drops and models about to expire.
- Free tier tracking: set the max input price to 0 to list every free model.

It replaces copying numbers from the OpenRouter website by hand, and the raw API where prices come as per token strings you still have to convert.

### How to use it

1. Open the Actor and set the filters.
2. Click Start. Download results as JSON, CSV or Excel, or read them through the API.
3. Add a Schedule and an Integration (Slack, Google Sheets, webhook) to get new records automatically.

### Input

| Field | Description |
|---|---|
| `search` | Keywords matched against model id, name and description. All words must match. |
| `provider` | Providers to keep, comma separated, using the id prefix (openai, anthropic, google, meta-llama). |
| `inputModality` | Keep models that accept text, image, file, audio or video input. Default is any. |
| `minContextLength` | Minimum context window in tokens. |
| `maxPromptPricePerMillion` | Maximum input price in USD per 1M tokens. 0 returns free models only. |
| `maxResults` | Hard stop for the run. You are billed per result, so this caps the cost. |
| `proxyConfiguration` | Not needed for this source. |

Example input:

```json
{
    "provider": "anthropic, openai",
    "inputModality": "image",
    "minContextLength": 200000,
    "maxResults": 50
}
```

### Output

Every record has the same shape:

```json
{
    "id": "mistralai/pixtral-large-2502",
    "modelId": "mistralai/pixtral-large-2502",
    "name": "Mistral: Pixtral Large 2502",
    "provider": "mistralai",
    "contextLength": 128000,
    "promptPricePerMillion": 2,
    "completionPricePerMillion": 6,
    "isFree": false,
    "modality": "text+image->text",
    "inputModalities": ["text", "image"],
    "outputModalities": ["text"],
    "maxCompletionTokens": 102400,
    "supportsTools": false,
    "supportsReasoning": false,
    "cacheReadPricePerMillion": null,
    "created": "2026-11-20T00:51:05.000Z",
    "url": "https://openrouter.ai/mistralai/pixtral-large-2502",
    "scrapedAt": "2026-11-24T16:23:19.101Z"
}
```

| Field | Meaning |
|---|---|
| `id` | Stable key, safe for deduplication between runs |
| `modelId` | OpenRouter model id, the string you pass to the API |
| `provider` | Lab or vendor, taken from the id prefix |
| `contextLength` | Context window in tokens |
| `promptPricePerMillion` | Input price in USD per 1M tokens. Empty when OpenRouter prices the model per request or variably |
| `completionPricePerMillion` | Output price in USD per 1M tokens |
| `isFree` | True when both input and output price are 0 |
| `inputModalities`, `outputModalities` | What the model reads and writes |
| `maxCompletionTokens` | Largest single response the top provider allows |
| `supportsTools`, `supportsReasoning`, `supportsStructuredOutputs` | Capability flags from the supported parameters list |
| `cacheReadPricePerMillion`, `cacheWritePricePerMillion` | Prompt caching prices when offered |
| `imagePricePerUnit`, `webSearchPricePerRequest` | Extra per unit prices when offered |
| `intelligenceIndex`, `codingIndex` | Artificial Analysis scores when OpenRouter publishes them |
| `created`, `expirationDate` | When the model was listed and when it retires, as ISO dates |
| `supportedParameters` | Full list of request parameters the model accepts |

### Pricing

Pay per event: a small fee when a run starts, then a fixed price per result returned. You only pay for records that pass your filters. Set `maxResults` to cap any run.

### Limitations

- Prices are the headline OpenRouter rates. Tiered rates for very long prompts and per provider endpoint prices are not included.
- Models OpenRouter prices per request, such as the auto router, have empty token prices.
- Benchmark scores exist only for models where OpenRouter shows them.
- The list changes as OpenRouter adds and retires models, so a model you saw last week may be gone.

### FAQ

**Is this legal?** The Actor reads the model list OpenRouter publishes for any visitor without a login. It stores no personal data. You are responsible for how you use the data.

**How fresh is the data?** It is fetched live each run.

**Something is missing or broken?** Open an issue in the Issues tab; response time is usually under a day.

# Actor input Schema

## `search` (type: `string`):

Keywords matched against model id, name and description. All words must match. Example: claude sonnet

## `provider` (type: `string`):

Only models from these providers, comma separated, using the id prefix. Example: openai, anthropic, google, meta-llama

## `inputModality` (type: `string`):

Only models that accept this kind of input.

## `minContextLength` (type: `integer`):

Only models with at least this many tokens of context. Example: 200000

## `maxPromptPricePerMillion` (type: `number`):

Only models whose input price is at or below this. Use 0 for free models only. Leave empty for no limit.

## `maxResults` (type: `integer`):

Hard stop for the run. You are billed per result, so this caps the cost.

## `proxyConfiguration` (type: `object`):

Not needed for this source. Leave off.

## Actor input object example

```json
{
  "search": "",
  "provider": "",
  "inputModality": "any",
  "minContextLength": 0,
  "maxResults": 100,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "search": "",
    "provider": "",
    "minContextLength": 0,
    "maxResults": 100,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("talcoe/openrouter-models").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "search": "",
    "provider": "",
    "minContextLength": 0,
    "maxResults": 100,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("talcoe/openrouter-models").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "search": "",
  "provider": "",
  "minContextLength": 0,
  "maxResults": 100,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call talcoe/openrouter-models --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,talcoe/openrouter-models"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ldsFrLFivYYkVMKrQ/builds/En9hqNBmN4A5xpSBa/openapi.json
