Build AI Agents with OpenAI
The most widely used LLM provider, powering GPT-4o, GPT-4 Turbo, and o1 reasoning models.
Available OpenAI Models
| Model | ID |
|---|---|
| GPT-4o | gpt-4o |
| GPT-4o Mini | gpt-4o-mini |
| GPT-4 Turbo | gpt-4-turbo |
| GPT-3.5 Turbo | gpt-3.5-turbo |
| o1 | o1 |
| o1 Mini | o1-mini |
| o3 Mini | o3-mini |
Why use OpenAI for AI agents?
Best tool calling support
Largest ecosystem
Strong multimodal capabilities
Fast inference
Best use cases
- General-purpose AI agents
- Code generation
- Data analysis
- Content creation
Quick start code
agent.py
from agno.agent import Agent
from agno.models.openai import OpenAIChat
agent = Agent(
name="My OpenAI Agent",
model=OpenAIChat(id="gpt-4o"),
instructions=["You are a helpful assistant."],
markdown=True,
)
agent.print_response("Hello! What can you help me with?")Install: pip install agno Then set OPENAI_API_KEY