Skip to main content
For use cases that require structured output such as document processing, content analysis, and form filling, use Pydantic models to generate structured output with OpenRouter’s Response APIs.

Prerequisites

Set OPENROUTER_API_KEY environment variable.

Run the Example