OpenRouter
OpenRouter is a unified API service that aggregates dozens of models from various providers, making it a highly flexible option within ChatFrame. It is supported via the OpenAI Compatible API setting.
Configuration
OpenRouter is accessed through ChatFrame's Custom Providers (OpenAI Compatible) feature.
- Obtain API Key: Get your API key from the OpenRouter website.
- Open ChatFrame Settings: Navigate to the Providers tab and select Custom Providers.
- Configure Endpoint:
- API Endpoint: Use the OpenRouter base URL (e.g.,
https://openrouter.ai/api/v1). - API Key: Paste your OpenRouter API key.
- API Endpoint: Use the OpenRouter base URL (e.g.,
- Model Selection: Once configured, ChatFrame should be able to fetch the list of models available via the OpenRouter API.
Benefits
Using OpenRouter allows you to:
- Access Diverse Models: Seamlessly switch between models from providers like Anthropic, Cohere, Meta, and more, all through a single API key.
- Cost Optimization: OpenRouter often provides competitive pricing and a unified billing system for multiple models.
OpenRouter. Documentation. https://openrouter.ai/docs