Parameters
OpenRouter extends OpenAILike and accepts all of its parameters.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Configure OpenRouter, Agno’s model class for unified access to language models via OpenRouter’s Chat Completions API.
| Parameter | Type | Default | Description |
|---|---|---|---|
id | str | "gpt-5.4-mini" | The id of the OpenRouter model to use |
name | str | "OpenRouter" | The name of the model |
provider | str | "OpenRouter" | The provider of the model |
api_key | Optional[str] | None | The API key for OpenRouter (defaults to OPENROUTER_API_KEY env var) |
base_url | str | "https://openrouter.ai/api/v1" | The base URL for the OpenRouter API |
max_tokens | int | 1024 | Maximum number of tokens to generate |
models | Optional[List[str]] | None | Fallback model IDs for dynamic model routing when the primary model fails |
OpenRouter extends OpenAILike and accepts all of its parameters.Was this page helpful?