OpenAI GPT-5-mini
Use OpenAI GPT-5-mini through the Responses API to write a report comparing NVDA to TSLA.
Add the following code to your Python file
from agno.agent import Agent
from agno.models.openai import OpenAIResponses
agent = Agent(model=OpenAIResponses(id="gpt-5-mini"))
agent.print_response("Write a report comparing NVDA to TSLA", stream=True)Set up your virtual environment
uv venv --python 3.12
source .venv/bin/activateInstall dependencies
uv pip install -U agno openaiExport your OpenAI API key
export OPENAI_API_KEY="your_openai_api_key_here"Run Agent
python gpt5_mini.py