For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

Package Manager Console
Install-Package Umbraco.AI.OpenRouter

Or via .NET CLI:

Terminal
dotnet add package Umbraco.AI.OpenRouter

Connection Settings

Setting
Required
Description

API Key

Yes

Your OpenRouter API key from openrouter.ai/keys

Endpoint

No

Custom endpoint URL (defaults to https://openrouter.ai/api/v1)

OpenRouter connection detail showing API Key and Endpoint fields

Getting an API Key

  1. Sign up at openrouter.ai.

  2. Navigate to Keys.

  3. Create a new key.

  4. 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.

This provider supports Chat only. OpenRouter's provider routing and fallback options, reasoning-effort settings, and embeddings aren't available yet.

Last updated

Was this helpful?