Skip to main content

Overview

OpenRouter provides unified access to models from OpenAI, Anthropic, Google, Meta, and many others through a single API. Simplifies multi-model applications with consistent pricing and routing. Model Class: OpenAIChatModel (OpenAI-compatible API)

Authentication

Examples

Model Settings

You can set model parameters in two ways: on the model or on the Agent. On the model:
On the Agent:

Parameters