OpenRouter

OpenRouter

Access hundreds of AI models through a unified API. Supports GPT-4, Claude, Llama, and many more with automatic fallbacks.

Authentication: api key

Tools

Chat Completion
Create a chat completion using any available AI model through OpenRouter. Supports streaming, function calling, and multimodal inputs.
Chat Completion With Fallbacks
Create a chat completion with automatic model fallbacks if the primary model is unavailable.
List Models
List all available AI models on OpenRouter with their properties, pricing, and capabilities.
Get Model
Get detailed information about a specific model including pricing, context length, and capabilities.
List Model Endpoints
List all available endpoints/providers for a specific model.
Get Generation
Get details about a specific generation/completion request by ID.
Get Credits
Get the current credit balance and usage information for the API key.
Get Rate Limits
Get the current rate limit status for the API key.
Create Embeddings
Create embeddings for text using available embedding models.
Completion
Create a text completion using the legacy completions endpoint.