Skip to main content

Features

  • Multiple providers - Access 50+ models from various providers
  • Automatic failover - Route to available providers
  • Cost optimization - Choose models by price/performance
  • Single API key - One key for all providers

Installation

Configuration

Environment Variables

Character Configuration

Supported Operations

Important: Embedding Fallback

OpenRouter doesn’t provide embedding endpoints, so include a fallback:

Model Configuration

The plugin uses model tiers:
  • SMALL_MODEL: Fast, cost-effective responses
  • LARGE_MODEL: Complex reasoning, best quality
  • IMAGE_MODEL: Multimodal capabilities
OpenRouter provides access to 50+ models from various providers. You can use:

Premium Models

  • Any Anthropic Claude model (Opus, Sonnet, Haiku)
  • Any OpenAI GPT model (GPT-4o, GPT-4, GPT-3.5)
  • Google Gemini models (Pro, Flash, etc.)
  • Cohere Command models

Open Models

  • Meta Llama models (3.1, 3.2, 3.3)
  • Mistral/Mixtral models
  • Many models with :free suffix for testing

Pricing Strategy

OpenRouter charges a small markup (usually ~10%) on top of provider prices:
  1. Pay-per-token - No monthly fees
  2. Price transparency - See costs per model
  3. Credits system - Pre-pay for usage

External Resources