Agent interface with no extra setup.
Installation
Environment Setup
.env file:
Quick Start
The minimum needed to run a GPT agent:Model Names
GPT-4.1 — The Workhorse
The right default for most production agents. Strong quality, full tool/vision/streaming support, predictable cost.GPT-5.4 — Frontier Reasoning
For your hardest reasoning, planning, and coding tasks. GPT-5.4 supports the full Agent feature set including tools and streaming.o3 — Reasoning Models
The o-series models (o3, o3-mini, o1) are optimized for chain-of-thought reasoning. They’re slower and pricier per token but deliver dramatically better results on math, code, and multi-step planning.
For reasoning models, set
reasoning_effort and leave temperature at its default. The model’s internal chain-of-thought is not exposed in the response — only the final answer.