← All Guides

Guide

What Is OpenRouter?

OpenRouter is a unified API gateway that gives you access to 300+ large language models — from OpenAI, Anthropic, Google, Meta, DeepSeek, Mistral, xAI, and many more — through a single API key and a single endpoint. No more juggling per-provider accounts, billing relationships, or SDK integrations.

What Is OpenRouter?

OpenRouter is a unified API gateway that sits in front of the world's major AI model providers and exposes all of them through one OpenAI-compatible API endpoint. Instead of creating separate accounts with OpenAI, Anthropic, Google, Meta, DeepSeek, Mistral, and xAI — and managing separate API keys, billing accounts, and SDKs for each — you create one OpenRouter account, add credits, and access every model through a single sk-or- API key.

OpenRouter launched in 2023 and has since become a de-facto standard for developers and power users who want model flexibility without the operational overhead of managing relationships with every AI provider individually.

How OpenRouter Works

OpenRouter exposes an OpenAI-compatible REST API at https://openrouter.ai/api/v1. Any application built for the OpenAI API can point at OpenRouter instead and immediately gain access to every model OpenRouter supports — no code changes beyond swapping the base URL and API key.

Switching models is as simple as changing the model field in your API request. For example, to switch from Claude to GPT to DeepSeek, you change one string — no new SDK, no new authentication flow, no new billing relationship. OpenRouter handles routing the request to the correct provider and returning the response in a normalized format.

OpenRouter also provides automatic fallback and routing: if a provider is temporarily unavailable or returns an error, OpenRouter can automatically retry through an alternative provider for the same model family, improving reliability without any extra code on your side.

Why Use OpenRouter

  • One key for every model — Access 300+ models from every major provider without creating separate accounts
  • Instant model switching — Change a single model-id string to switch providers; no SDK changes, no re-auth
  • Provider redundancy — Automatic fallback routing if a provider has an outage or rate-limit spike
  • Transparent pricing — Per-token costs are published openly; OpenRouter passes through provider pricing
  • No minimum commitments — Add credits and pay only for what you use; no monthly subscriptions required
  • Usage analytics — A built-in dashboard shows exactly which models you're using and what each is costing
  • Free models available — Several open-weight models (Llama, Mistral, Qwen variants) are available at no cost
  • OpenAI-compatible — Drop-in replacement for any codebase already using the OpenAI client library

OpenRouter Pricing

OpenRouter uses a prepaid credits model with pay-per-token billing. There is no monthly subscription fee for accessing the API. You add credits to your OpenRouter account (minimum $5), and each API request deducts from your balance based on the number of input and output tokens consumed.

Prices are set per model and published transparently at openrouter.ai/models. OpenRouter passes through the provider's pricing — it makes a small margin on credit purchases rather than inflating per-token rates. This means the cost of using Claude through OpenRouter is typically very close to the cost of using it directly through Anthropic.

OpenRouter also supports BYOK (Bring Your Own Key): if you already have an API key from a specific provider (e.g., your own Anthropic or OpenAI account), you can add it under Settings → Integrations. Requests to that provider then route through your own key instead of OpenRouter's credits, which is useful if you have existing commitments or negotiated rates with a provider.

OpenRouter vs Individual Provider APIs

OpenRouterIndividual Provider APIs
API keys neededOne (sk-or-…)One per provider
Billing accountsOne (OpenRouter credits)Separate account per provider
Switching modelsChange one stringNew key + config per provider
Provider fallbackAutomatic routingManual error handling required
Model coverage300+ across all providersModels from that provider only
API compatibilityOpenAI-compatible (universal)Varies by provider
Usage analyticsUnified dashboard, all modelsSeparate dashboard per provider

The main trade-off is that using OpenRouter adds one network hop between your application and the underlying provider. For most use cases the latency difference is negligible. Users who need the absolute lowest latency for a single provider, or who have provider-specific enterprise agreements, may prefer direct API access for that provider. For everyone else, the flexibility and simplicity of a single unified key is the better choice.

Using OpenRouter With OpenClaw and Hermes

OpenClaw Launch supports OpenRouter in two ways. First, every managed instance comes with AI credits included so you don't need an OpenRouter account at all — you can pick from 200+ models directly in the dashboard and the routing is handled automatically. Second, if you prefer to use your own OpenRouter API key (BYOK), you can enter it in the configurator to draw from your own credits and unlock the full OpenRouter model catalog.

For step-by-step setup instructions for each framework, see the dedicated guides:

Frequently Asked Questions

Is OpenRouter free?

OpenRouter is free to sign up for. You pay only for the tokens you consume, on a pay-as-you-go basis using prepaid credits. Several open-weight models (Llama, Mistral, and certain Qwen variants) are available at no cost. For premium proprietary models like Claude Sonnet, GPT-5, or Gemini Pro, you add credits and pay per token. There is no monthly subscription fee for API access.

Do I need an OpenRouter key to use OpenClaw Launch?

No. OpenClaw Launch includes AI credits with every plan, so you can use 200+ models through the dashboard without creating an OpenRouter account or managing any API keys. If you want to bring your own OpenRouter key to use your own credits, that option is available in the configurator.

What models does OpenRouter support?

OpenRouter supports 300+ models as of 2026, including models from OpenAI (GPT-5, o3), Anthropic (Claude Sonnet 4.6, Claude Opus 4.6), Google (Gemini 2.5 Pro, Gemini Flash), Meta (Llama 4), DeepSeek (DeepSeek V3, DeepSeek R2), Mistral, xAI (Grok), Alibaba (Qwen3), and many community and open-weight models. The full list with live pricing is at openrouter.ai/models.

Is OpenRouter an OpenAI-compatible API?

Yes. OpenRouter exposes the same REST API schema as OpenAI's Chat Completions endpoint (/v1/chat/completions). Any application that already uses the OpenAI client library or sends requests to the OpenAI API can switch to OpenRouter by changing the base URL to https://openrouter.ai/api/v1 and swapping in an OpenRouter API key — no other code changes required.

What's Next

300+ Models, Zero Key Management

Deploy your AI agent with AI credits included. Switch models anytime from the dashboard.

Deploy Now