Table of contents

Thousands of companies trust Merge to accelerate AI from PoC to production.
Get a demo

What is OpenRouter? Here's what you need to know

Jon Gitlin
Senior Content Marketing Manager
at Merge

The LLMs that perform well today may get slower, deprecated, or outperformed next month. 

To abstract the complexity of moving between models over time, you can use OpenRouter.

OpenRouter gives developers a single API for accessing and routing across hundreds of LLMs. And it provides features like cost governance and fallback behaviors to help you manage your LLM spend and performance.

To help you decide whether OpenRouter is the best LLM routing solution for your use case, we’ll break down how the platform works, the different ways to use, its pros and cons, and more.

How OpenRouter works

At a high level, your application sends a request to OpenRouter's API. OpenRouter forwards that request to the selected model, and then OpenRouter returns the response in a normalized format. 

How OpenRouter generally works

Here's how the workflow typically works:

1. Create an OpenRouter account. You can create your own account or set up an organization for team usage.

OpenRouter's sign up page

2. Add credits or use free models. OpenRouter supports a free tier with access to free models, as well as pay-as-you-go credits that can be used across paid models and providers.

Snapshot of OpenRouter's models
OpenRouter only supports a handful of models on their free plan, like those shown above

3. Generate an API key. OpenRouter lets you create API keys from the dashboard. These keys are then used to authenticate requests from your application.

How to create an API key in OpenRouter
You can give your API key a unique name, assign it a credit limit, give it an expiration date, and establish a reset cadence

4. Send requests through OpenRouter's unified API. Instead of calling the model provider directly, your application sends requests to OpenRouter's endpoint at <code class="blog_inline-code">https://openrouter.ai/api/v1/chat/completions</code>.

5. OpenRouter routes the request. How this happens depends on your routing configuration. For example, you can pin a specific model ID, turn on the Auto Router to let OpenRouter pick a model based on the request, or define fallback models to use if the primary one is unavailable or rate-limited.

For example, you can use the code below to send a request that tries Claude Sonnet's latest release first and automatically falls back to Mythomax L2 13B if that model errors out or is unavailable.

import requests
import json
response = requests.post(
  url="https://openrouter.ai/api/v1/chat/completions",
  headers={
    "Authorization": "Bearer ",
    "Content-Type": "application/json",
  },
  data=json.dumps({
    "models": ["~anthropic/claude-sonnet-latest", "gryphe/mythomax-l2-13b"],
    "messages": [
      {
        "role": "user",
        "content": "What is the meaning of life?"
      }
    ]
  })
)
data = response.json()
print(data['choices'][0]['message']['content'])

6. You receive a normalized response. OpenRouter normalizes requests and responses across providers, which reduces the amount of provider-specific code your engineering team needs to maintain. In other words, you can parse the response the same way regardless of which model or provider actually handled the request.

Here’s how a response can look: 

{
  "id": "gen-1720000000-abc123XYZ",
  "model": "anthropic/claude-sonnet-4.5",
  "object": "chat.completion",
  "created": 1720000000,
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "There's no single answer, but many people find meaning through relationships, purpose, and growth."
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 12,
    "completion_tokens": 24,
    "total_tokens": 36
  }
}

7. Track usage and spend. As you route requests to OpenRouter, the platform provides usage visibility and unified billing through credits. You can use this to avoid managing separate accounts, invoices, and credentials across every underlying model provider.

Related: The top OpenRouter alternatives

Examples of using OpenRouter

Since OpenRouter can support any workflow that uses LLMs, there are basically infinite use cases.

Here are just a few internal (within your business) and external (within your product) use cases.

Testing and comparing models

Say you need to evaluate GPT, Claude, Gemini, DeepSeek, Qwen, and Mistral models on the same job: summarizing sales calls. 

Your team can test the same task against each of the six models through OpenRouter, then keep whichever one performs best without rewriting any provider-specific code.

How to test and compare models with OpenRouter

Building an internal AI assistant

Imagine you need an internal chatbot that answers questions from internal docs, summarizes long documents, and drafts emails. 

A given model can either be overkill for the simple requests or too weak for the hard ones. 

You can route complex reasoning to a stronger model and simpler classification to a cheaper model via OpenRouter.

How an internal assistant can route requests with OpenRouter

Powering AI features for your customer support helpdesk 

Say you're shipping three specific features in your helpdesk product: 

  • Ticket triage that auto-tags incoming tickets
  • A draft reply assistant that writes first-pass responses to complex questions
  • A history digest that summarizes a customer's full support history before a rep picks up the case

Instead of hardcoding one model across all three, your team can assign a cheaper, faster model to triage, a stronger reasoning model to the draft reply assistant, and a long-context model to the history digest. You can then adjust routing per feature as you learn what works.

How OpenRouter can send specific tasks to different models

Benefits of using OpenRouter

Here are some of the pros of using OpenRouter:

  • Broad model catalogue: OpenRouter offers text, image, embeddings, audio, video, speech, transcription, and rerank models from dozens of providers. They’re also constantly adding to their model catalogue
OpenRouter's model library
Snapshot of OpenRouter’s models
  • Fast model experimentation: Swapping models is a parameter change instead of a new integration. This is useful as prices and performance rankings shift
  • OpenAI-compatible API: Teams already on the OpenAI SDK can often just swap the base URL and API key. This means you don’t need to replace the SDK or request format
  • Free plan: You can use 25+ free models and make up to 50 requests per day on the Free plan, which can help you test the platform before deciding whether to invest in it
  • Large developer ecosystem: OpenRouter has millions of users, leading them to amass large user communities in places like Discord
Invite form for OpenRouter’s Discord channel
Invite form for OpenRouter’s Discord channel

Challenges of using OpenRouter

OpenRouter isn’t without its drawbacks. Here are a few we’ve heard directly from current and former OpenRouter customers:

  • Minimal support: Every plan (with the exception of their enterprise plan) is poorly supported by their team. You’ll have to submit tickets when issues arise, and it can take days to get a response 
  • Basic cost governance: There's no native per-customer or per-feature budget dashboard across shared keys, and no automatic routing to cheaper models as spend increases, so that layer typically has to be built on top
  • Shallow observability features: OpenRouter doesn’t explain why certain routing decisions were made (e.g., fell back to Opus 4.8 because Fable 5 errored), which can make it harder to debug issues
  • Solely provides routing support: Your internal and customer-facing AI needs likely extend beyond LLM routing. When they do, you’ll need to invest in additional software
  • Costly at scale: OpenRouter’s 5.5% platform fee quickly adds up as you increase your usage. You can end up with a significant bill that limits your ROI with the platform
OpenRouter's platform fee

Why Merge Gateway is the best OpenRouter alternative

OpenRouter is a strong option for developers who want fast access to many models through one API. But AI products, especially SaaS ones, also need to route by customer, cost attribution, data protection, and request-level visibility.

Merge Gateway is a unified API and control plane built for exactly that. 

With Merge Gateway, you get:

  • Better pricing: Merge’s platform fee is 10% cheaper than OpenRouter’s. This can translate to thousands of dollars in savings every year
  • Custom routing policies: Route by customer, feature, region, use case, or capability, not just by model or provider
  • Build your own router (BYOR): Route on your own benchmark and evaluation scores, not just cost, latency, or provider health, so "best" is defined by your data
  • Request-level observability. Inspect the model, cost, latency, and routing reason behind every request, not just aggregate usage
Merge Gateway's observability
  • Cost attribution. Track and attribute spend by customer, project, team, or feature, built for SaaS margins, not just org-level usage

{{this-blog-only-cta}}

Jon Gitlin
Senior Content Marketing Manager
@Merge

Jon Gitlin is the Managing Editor of Merge's blog. He has several years of experience in the integration and automation space; before Merge, he worked at Workato, an integration platform as a service (iPaaS) solution, where he also managed the company's blog. In his free time he loves to watch soccer matches, go on long runs in parks, and explore local restaurants.

Read more

Embedded Routing Stack: Give your customers control over model routing

Company

GLM-5.2 vs Claude Sonnet 5: how they compare on coding

How to connect a Gamma MCP with Codex (4 steps)

Insights

Subscribe to the Merge Blog

Get stories from Merge straight to your inbox

Subscribe

Ready to try the best OpenRouter alternative?

Create a free Merge Gateway account and start routing requests to any model in minutes.

Create free account
But Merge isn’t just a Unified 
API product. Merge is an integration platform to also manage customer integrations.  gradient text
But Merge isn’t just a Unified 
API product. Merge is an integration platform to also manage customer integrations.  gradient text
But Merge isn’t just a Unified 
API product. Merge is an integration platform to also manage customer integrations.  gradient text
But Merge isn’t just a Unified 
API product. Merge is an integration platform to also manage customer integrations.  gradient text