OpenRouter
Cloud API aggregator providing access to many models from multiple providers through a single OpenAI-compatible endpoint.
OpenRouter is a model aggregator that provides access to models from many providers (OpenAI, Anthropic, Google, Meta, Mistral, and more) through a single OpenAI-compatible endpoint.
Configuration
[backend]
name = "openrouter"
url = "https://openrouter.ai"
model = "meta-llama/llama-3.3-70b-instruct"
api_key = "sk-or-..."
Notes
Model names use the org/model format (e.g., anthropic/claude-sonnet-4-5-20250929). The API path is /api/v1/chat/completions.
Default Endpoint
POST https://openrouter.ai/api/v1/chat/completions