Skip to main content

OpenRouter

OpenRouter is a unified API platform that provides access to multiple large language models (LLMs) through a single interface. With OpenRouter, you can interact with AI models for generating text, managing conversations, retrieving model lists, and tracking credit usage, simplifying integration with various AI providers.

Prerequisite

  1. OpenRouter API Key: Sign up on OpenRouter.ai and obtain your API key. This key is used to authenticate all requests to the OpenRouter API.
info

When using Free Models, you must Enable training and logging (chatroom and API) in Privacy Settings in case you are getting this error - No endpoints found matching your data policy. Enable prompt training here: https://openrouter.ai/settings/privacy

Configuring API Connector in DronaHQ

Add a Account name. Then add the API key for the connector account. Once all details are added, click Save. Your connector configuration is now done.

info

You should have an account on OpenRouter to get the API – keys. You can fetch API keys from here.

OpenRouter with configuration details.
OpenRouter with configuration details.

After successfully configuring and saving the connector settings, you can easily access your newly connected account by navigating to the connected accounts list. You can find this option from the Connector -> Manage Account section. This centralized location allows you to conveniently monitor and manage your connected accounts.

Supported API endpoints

ActionDescription
GetModelsFetch a list of available LLM models accessible through OpenRouter.
CompletionGenerate text completions by sending a prompt to a selected model.
ChatCompletionGenerate interactive chat responses using conversation-style input/output.
GetCreditsRetrieve the current usage and available credits on your OpenRouter account.