Use OpenRouter’s Chat API to send messages to multiple models in parallel. This allows you to use the best model for the task at hand, and to handle errors and timeouts gracefully. For details, see examples inDocumentation Index
Fetch the complete documentation index at: https://agno-v2-shaloo-ai-support-link.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
cookbook/90_models/openrouter/chat.
| Example | Description |
|---|---|
| Basic | Cookbook example for openrouter/chat/basic.py. |
| Dynamic Model Router | Dynamic models provide automatic failover when the primary model encounters rate limits, timeouts, unavailability or model overload. |
| Retry | Example demonstrating how to set up retries with OpenRouter. |
| Structured Output | Cookbook example for openrouter/chat/structured_output.py. |
| Tool Use | OpenRouter model example. |