OpenRouterNew

One API key for hundreds of models, with provider prices passed through, a percentage fee on credits, routing fallbacks and a per-request price cap.

  • Popularity
  • Model API
  • Multi-model
  • Routing
  • Developer Tools
  • Coding
  • Free tier
OpenRouter: One Key Into the Whole Model Market thumbnail
Report incorrect information

Choose an issue below. You do not need to sign in or leave contact details.

At a glance

One key, one balance, hundreds of models, with automatic provider selection by price and latency — the least tedious way to evaluate models.

  • Free tierPartialFree models with rate limits; real usage needs credits
  • Open sourceNo
  • Works in ChinaNo
  • APIYes
Best for
  • Developers comparing several models side by side
  • Products that need automatic fallback when a provider fails
  • Teams who don't want separate onboarding and billing per vendor
Pros
  • OpenAI-compatible endpoint, so integration barely changes your code
  • Provider token prices are passed through; the fee lands on credit purchases
  • Routing variants, a per-request price ceiling and custom data policies
Cons
  • A single-provider product with no fallback need pays routing overhead for nothing
  • If a provider raises rates, requests still route there and bill at the new price
  • Public SLA terms are limited; heavy production use means the enterprise plan
Pricing

Model prices pass through at provider rates; buying credits costs 5.5% by card (minimum $0.80) or 5% in crypto. Free models allow 50 requests a day without credits, or 1,000 a day after buying $10; BYOK usage is free for the first $25,000 a month. Check the official site for current terms.

Pricing changes over time; check the official site

Access from mainland China

Reaching openrouter.ai from mainland China requires your own network arrangements.

OpenRouter is an aggregation layer for model APIs: one key, one balance, and access to hundreds of models from dozens of providers through an OpenAI-compatible endpoint, with routing, price comparison and failover between them.

The Problem It Removes

When you evaluate several models at once, the time sink isn't the code — it's repeating onboarding, key management, billing and error handling four times over. OpenRouter collapses that into one entry point: switching models is usually a change to one model-name string.

For products already in production, the value sits at the other end — automatic fallback when a provider degrades, without waiting for a status page to update.

Getting Started in Three Steps

  1. Sign up and create an API key in the dashboard; buy credits if you want paid models.
  2. Point your existing OpenAI SDK's base URL at https://openrouter.ai/api/v1 and swap in your OpenRouter key.
  3. Name models in the "provider/model" format; the models list shows each model's exact ID, context length and per-provider pricing.
from openai import OpenAI

client = OpenAI(base_url="https://openrouter.ai/api/v1", api_key="your OpenRouter key")
reply = client.chat.completions.create(
    model="provider/model-name",  # copy from the models list
    messages=[{"role": "user", "content": "Hello"}],
)

How Billing Works

According to the official FAQ, model prices are passed through at the underlying provider's rate with no markup; the platform earns its fee when you buy credits:

  • Credit purchase fee: 5.5% for card payments (Stripe) with a $0.80 minimum; 5% for crypto payments.
  • Free models: 50 requests a day with no credits purchased, rising to 1,000 a day once you've bought at least $10 in credits.
  • Bring your own key (BYOK): route through OpenRouter with your own provider keys; on pay-as-you-go the first $25,000 of usage each month is free, and usage beyond that costs 5% of OpenRouter's standard price. The Enterprise allowance is $200,000 a month.

So a $100 top-up yields less than $100 of usable credit after the fee, and with small, frequent top-ups the $0.80 minimum pushes the effective rate higher — it's cheaper to top up in larger amounts.

Knobs Worth Knowing

  • Routing variants: pick providers dynamically by cost or performance.
  • Per-request price ceiling: set a threshold, and the request isn't sent if no provider meets it.
  • Data policies: restrict routing to providers you trust. Per the official docs, prompts and completions aren't logged by default; opting in to logging earns a 1% discount.

When Not to Use It

If your product uses one model and needs no fallback, this layer is pure overhead — go direct. Also note that when a provider changes rates, requests keep routing there and bill at the new price, so pair budget-sensitive workloads with the price cap.

Enterprises with strict data-compliance requirements should also note that requests pass through OpenRouter on their way to the provider, adding one more party that processes the data.

How It Compares

Using It From China

Reaching openrouter.ai from mainland China requires your own network arrangements, and buying credits usually needs an overseas bank card or crypto.