OpenRouter

A unified interface for LLMs

Inference specialist๐Ÿ‡บ๐Ÿ‡ธ USinferenceaggregatoropen-source

OpenRouter provides a unified API for accessing hundreds of AI models from multiple providers. It aggregates models from OpenAI, Anthropic, Google, Meta, Mistral, and many others, offering a single endpoint with automatic fallback routing and provider optimization.

We're actively tracking prices for OpenRouter. Check back soon, or browse other providers with current pricing.

Pros & Cons

Advantages

  • Largest selection of models through a single API
  • Transparent per-token pricing with no markup on many models
  • Automatic failover across multiple providers
  • No vendor lock-in โ€” switch models with a single parameter change
  • Supports prompt caching for cost savings
  • Free tier available for select models

Limitations

  • Aggregator pricing may include a small margin on some models
  • Latency may be slightly higher due to routing layer
  • No fine-tuning or custom model training

Key Features

Unified Model Access

Single API endpoint for 300+ models from dozens of providers

Automatic Fallback Routing

Requests automatically route to the best available provider for each model

OpenAI-Compatible API

Drop-in replacement using the OpenAI SDK format

Provider Optimization

Routes to the fastest or cheapest provider based on your preference

Usage-Based Pricing

Pay per token with no minimum commitments or subscriptions

Prompt Caching

Reduced pricing for cached input tokens on supported models

Pricing Options

OptionDetails
Pay-per-tokenUsage-based pricing per input and output token, varying by model
Prompt cachingDiscounted rates for cached input tokens on supported models
Free modelsSelect open-source models available at no cost

Availability & Support

Regions

Global โ€” routes to providers across multiple regions for optimal latency

Support

Documentation, Discord community, and email support

Getting Started

  1. 1

    Create an account

    Sign up at openrouter.ai

  2. 2

    Get API key

    Generate an API key from your dashboard

  3. 3

    Choose a model

    Browse 300+ models across text, image, audio, and video

  4. 4

    Make API calls

    Use OpenAI-compatible endpoints with your OpenRouter key