| Example | Description |
|---|---|
| Basic | OpenRouter’s Responses API (beta) provides OpenAI-compatible access to multiple. |
| Fallback | This demonstrates using fallback models with OpenRouter’s dynamic model routing. |
| Stream | Requirements: - Set OPENROUTER_API_KEY environment variable. |
| Structured Output | This demonstrates using Pydantic models for structured output with OpenRouter’s. |
| Tool Use | This demonstrates using tools with OpenRouter’s Responses API endpoint. |