OpenRouter
Configure OpenRouter as an AI provider for chat models from dozens of vendors through one API key.
OpenRouter provides access to hundreds of chat models from dozens of vendors through a single API key, supporting the Chat capability.
Installation
Install-Package Umbraco.AI.OpenRouterOr via .NET CLI:
dotnet add package Umbraco.AI.OpenRouterConnection Settings
Setting
Required
Description
Endpoint
No
Custom endpoint URL (defaults to https://openrouter.ai/api/v1)

Getting an API Key
Sign up at openrouter.ai.
Navigate to Keys.
Create a new key.
Copy the key (it won't be shown again).
Choosing a Model
OpenRouter model IDs include the originating vendor, for example openai/gpt-4o or anthropic/claude-3.5-sonnet. Umbraco.AI lists the available models directly from the OpenRouter catalog.
Related
Last updated
Was this helpful?