Skip to content
Integration

OpenRouter integrations and automation

Say what should happen in OpenRouter, in plain words. Whenever builds it and runs it on a schedule, webhook or app event.

Connection requirements, provider permissions and optional AI usage apply. Read the runtime limits.

No credit card needed.

OpenRouter on Whenever

About OpenRouter

OpenRouter is a platform that provides a unified API for accessing various large language models (LLMs) from different providers, allowing developers to integrate multiple AI models seamlessly.

How Whenever connects

Through its API, with the provider’s credentials and permissions.

Build it from your AI client

Connect Claude, Cursor or Codex to the Whenever MCP server. Your coding agent builds and deploys the OpenRouter workflow. It then runs on Whenever, with the chat closed.

Set up the Whenever MCP server

Plan your OpenRouter workflow

OpenRouter is one API in front of many model providers. Instead of keeping separate keys and request formats for each lab, you send a chat completion request to OpenRouter’s endpoint in the OpenAI-compatible format and choose the model by its slug, such as a provider name followed by the model name. That makes it a practical choice when a workflow needs to compare models, switch to a cheaper one, or keep going when one provider has an outage.

Billing is prepaid credits on the OpenRouter account, charged according to each model’s listed price; running out returns a payment-required error. The models endpoint returns available models with context length and prompt and completion prices, which lets a workflow pick or check a model before using it. Some models are offered as free variants with a :free suffix; OpenRouter caps requests to these per minute and per day, so they suit experiments more than a schedule your team depends on.

Routing options are where OpenRouter differs from calling one provider. A request can list fallback models so that if the first fails or is rate limited the next is tried, and provider preferences can restrict or order which upstream hosts serve an open-weight model, including excluding providers that store prompts. Each response reports the model actually used and token usage, and the generation lookup returns the cost of a completed request after the fact.

In a Whenever workflow, a call to OpenRouter is an AI step: the steps around it run the same way every time, but the model’s text can differ between runs, and the tokens are billed to your OpenRouter credits. Keep the deterministic parts, such as reading rows, calculating totals and deciding who receives what, outside the model, and give it a narrow job like classifying or summarising text you supply.

OpenRouter workflow examples

Starter briefs to set up with your accounts, not finished workflows.

Classify support emails with a fallback model

Uses a primary model and a backup so classification continues during a provider outage.

Build this workflow

Weekly model price watch

Tracks pricing for the handful of models a team actually uses.

Build this workflow

Daily spend report

Sums generation costs recorded by earlier runs so AI usage stays visible.

Build this workflow

Related apps for your workflows

All integrations

OpenRouter FAQs

Is OpenRouter compatible with the OpenAI API format?

Its chat completions endpoint follows the OpenAI request and response shape, with the model chosen by OpenRouter slug and extra routing parameters available.

How does OpenRouter charge?

Requests draw down prepaid credits at each model’s per-token price, shown on the models list. Usage per request is returned in the response.

What happens if the chosen model is unavailable?

You can list fallback models in the request; OpenRouter tries them in order if the first errors or is rate limited. The response shows which model answered.

Are the free models suitable for scheduled jobs?

Free variants have lower rate limits and availability can change, so treat them as best-effort rather than something a recurring job depends on.

Your first workflow is one sentence away.

One workflow free. No card. Weekly AI-building limits.