cookbook/90_models/openrouter/chat.
Chat API
Chat
Send messages to multiple models in parallel.
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 in