OpenRouter icon
AI Frameworks

OpenRouter

OpenRouter gives developers one OpenAI-compatible API for hundreds of AI models across many providers, passing through provider prices with a fee on credits.

OVERVIEW

About OpenRouter

OpenRouter is a unified API and marketplace for large language models. Instead of signing up with each AI lab separately, developers send requests to one OpenAI-compatible endpoint and choose from models by OpenAI, Anthropic, Google, Meta, Mistral, DeepSeek, and many others. OpenRouter handles provider routing, fallbacks, and billing in a single account.

Key features

  • One API for many models — supports the chat completions, completions, and responses endpoints, so existing OpenAI SDKs work by changing the base URL.
  • Automatic fallbacks — if a provider errors, the request moves to the next available provider for that model.
  • Routing controls — sort providers by price or throughput with variants like :floor and :nitro, or set rules per request.
  • Free models — :free model variants and an openrouter/free router for experimenting at no cost.
  • Bring your own key — use your own provider API keys through OpenRouter’s routing and dashboard.
  • Privacy settings — choose whether to allow providers that log or train on data; requests fail rather than route to a provider below your chosen privacy level.

Pricing

OpenRouter passes through each provider’s per-token model price without markup and charges a fee when you buy credits: 5.5% (minimum $0.80) by card, or 5% for crypto. Free model variants allow 50 requests per day without a purchase, rising to 1,000 per day once you have bought at least 10 credits. Bring-your-own-key usage is free up to $25,000 per month, then 5% of the equivalent OpenRouter cost. Fees and limits can change.

Who it’s for

Developers and startups building AI apps who want to compare models, avoid lock-in to one vendor, or keep a backup provider without maintaining several integrations.

Good to know

  • By default only request metadata is logged, not prompts or completions; opting into prompt logging gives a 1% discount.
  • Free models have tight rate limits and may be removed or changed at short notice.
  • The same model can perform differently across providers because of quantization or context limits; pin a provider if consistency matters.