> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Output Model

> Demonstrates setting a dedicated model for final team response generation.

```python output_model.py theme={null}
"""
Output Model
============

Demonstrates setting a dedicated model for final team response generation.
"""

from agno.agent import Agent
from agno.models.openai import OpenAIResponses
from agno.team import Team
from agno.tools.websearch import WebSearchTools

# ---------------------------------------------------------------------------
# Create Members
# ---------------------------------------------------------------------------
itinerary_planner = Agent(
    name="Itinerary Planner",
    model=OpenAIResponses(id="gpt-5.2"),
    description="You help people plan amazing vacations. Use the tools at your disposal to find latest information about the destination.",
    tools=[WebSearchTools()],
)

# ---------------------------------------------------------------------------
# Create Team
# ---------------------------------------------------------------------------
travel_expert = Team(
    model=OpenAIResponses(id="gpt-5-mini"),
    members=[itinerary_planner],
    output_model=OpenAIResponses(id="gpt-5-mini"),
)

# ---------------------------------------------------------------------------
# Run Team
# ---------------------------------------------------------------------------
if __name__ == "__main__":
    travel_expert.print_response("Plan a summer vacation in Paris", stream=True)
```

## Run the Example

<Snippet file="create-venv-step.mdx" />

**1. Install dependencies**

```bash theme={null}
uv pip install -U agno ddgs openai
```

**2. Export your OpenAI API key**

```bash Mac/Linux theme={null}
export OPENAI_API_KEY="your_openai_api_key_here"
```

```bash Windows theme={null}
$Env:OPENAI_API_KEY="your_openai_api_key_here"
```

**3. Run the example**

Save the code above as `output_model.py`, then run:

```bash theme={null}
python output_model.py
```

Full source: [cookbook/03\_teams/04\_structured\_input\_output/output\_model.py](https://github.com/agno-agi/agno/blob/v3.0.4/cookbook/03_teams/04_structured_input_output/output_model.py)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.