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.

  1. Obtain API Key: Get your API key from the OpenRouter website.
  2. Open ChatFrame Settings: Navigate to the Providers tab and select Custom Providers.
  3. Configure Endpoint:
    • API Endpoint: Use the OpenRouter base URL (e.g., https://openrouter.ai/api/v1).
    • API Key: Paste your OpenRouter API key.
  4. 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