Skip to content

OpenRouter Example

OpenRouter is a unified interface for LLMs. It provides a standardized API for all popular LLMs.

Preparation

Create an account and get your API key.

Configuration

We're using the anthropic/claude-2 model in this example.

You can find all the available models from OpenRouter website: https://openrouter.ai/docs#models