OpenRouter AI

OpenRouter AI

Overview


OpenRouter is a platform that provides a unified API for accessing and using a wide range of Large Language Models (LLMs) from various providers, including OpenAI, Google, Anthropic, and many more. It acts as a central hub, allowing developers to easily integrate different AI models into their applications through a single API key and endpoint.

With this module you can define multiple connections to Openrouter API using different models and use Openrouter AI connections for various current and upcoming HostBill modules, such as Translations, Domain lookups, Spam protection, Support tickets, Live chat and more.

Activating the module


  1. The plugin is free and available to all HostBill users. In order to activate the plugin go to Settings→ Modules→ Plugins → AI modules → Inactive, find and activate openrouter plugin.
  2. Once the plugin is activated you will be directed to Settings→ Modules→ Plugins to configure the module.

Module configuration


Once you activate the module you will be redirected to module configuration page. To configure the activated module you can also go to Settings → Apps → Add New App.

Fill in the configuration fields:

  1. Name
  2. API Key. To create an API key in OpenRouter, follow these steps:
    1. Log into your OpenRouter account.
    2. Click on your profile icon or username in the top-right corner.
    3. Select "Keys" or "Settings" from the dropdown menu.
    4. From there, navigate to the "API Keys" section to create or manage your API keys.
    5. Click on the "Create API Key" button.

    6. A new API key will be generated, which you can then use to integrate with the OpenRouter AI API. Make sure to copy and store the key securely, as it will be needed for authentication in your API requests.  
  3. Model - model to use with this connection. Save valid API key first in order to get a list of models.
  4. Max completion tokens - the maximum number of tokens to generate before stopping
  5. API Timeout - timeout for api requests, defaults to 15 seconds


How the module works


The module can be used with: