OpenRouter logo

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.

163
LLM Models
$0.02
From / 1M input

LLM API Pricing

Pay-per-token pricing. Prices shown per 1M tokens.

Prices last updated: April 18, 2026

ModelCreatorContextInput/1MOutput/1MUpdated
IBM131K$0.017$0.1104/18/2026
Mistral131K$0.020$0.0404/18/2026
Meta128K$0.020$0.0504/18/2026
Meta128K$0.027$0.2004/18/2026
Google8K$0.030$0.0904/14/2026
Meta8K$0.030$0.0404/18/2026
OpenAI128K$0.030$0.1404/18/2026
Alibaba33K$0.030$0.0904/14/2026
Alibaba128K$0.033$0.1304/18/2026
Amazon128K$0.035$0.1404/18/2026

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