| Example | Description |
|---|---|
| OpenAI Agent Flex Tier | Run o4-mini on the flex service tier with the OpenAIResponses model. |
| OpenAI Basic | Run a gpt-4o agent through the Responses API in sync, async, and streaming modes. |
| DB | Persist Responses API sessions in Postgres and answer a history-dependent follow-up. |
| OpenAI Deep Research Agent | Run OpenAI’s o4-mini-deep-research model to produce a cited research report. |
| OpenAI Image Agent | Describe an image from a URL and fetch related news via web search with OpenAIResponses. |
| OpenAI Image Agent Bytes | Pass image bytes to a Responses API agent that pairs vision with web search. |
| OpenAI Image Agent With Memory | Reference an earlier image in follow-up questions by adding history to context. |
| Image Generation Agent | Generate and save an image with OpenAITools and GPT Image 2. |
| Knowledge | Answer questions from a PDF stored in PgVector knowledge with OpenAIResponses. |
| Memory | Store user memories and session summaries in Postgres while chatting with gpt-4o over the Responses API. |
| OpenAI PDF Input Local | Query a local PDF with gpt-5.2 using the built-in file_search tool across two turns. |
| OpenAI PDF Input URL | Summarize a PDF by URL with file_search and web search, then read citations from the stored session. |
| OpenAI Reasoning O3 Mini | Stream a stock report from o3-mini with YFinance tools via the Responses API. |
| OpenAI Structured Output | Generate a MovieScript Pydantic model via JSON mode, strict, and guided structured output. |
| OpenAI Structured Output With Tools | Combine web search tools with a Pydantic output schema on gpt-5-mini. |
| Tool Use | Answer a news question with GPT-4o on the Responses API using WebSearchTools. |
| OpenAI Tool Use GPT 5 | Fetch a live stock price with gpt-5 and cached YFinance tool results. |
| OpenAI Tool Use O3 | Call YFinance tools from o3 through the OpenAI Responses API to fetch a live stock price. |
| OpenAI Verbosity Control | Raise GPT-5 verbosity to high and generate a detailed stock comparison with YFinance tools. |
| OpenAI WebSearch Builtin Tool | Combine the built-in web_search_preview tool with FileTools to search and save results to disk. |
| ZDR Reasoning Agent | Run o4-mini with store=False and reasoning_summary=“auto”, keeping multi-turn context in an InMemoryDb for Zero Data Retention. |
| Background Mode | Background mode enables long-running tasks on reasoning models like GPT-5.4 without worrying about timeouts or connectivity issues. |
| OpenAI File Input Direct | Attach files by URL, local path, or raw bytes to a Responses API agent. |
| Responses Image Agent File | Attach a local image by filepath to a Responses API agent, overriding the MIME type if needed. |
OpenAI
Responses
OpenAI Responses API examples: structured output, tool use, image and PDF input, deep research, reasoning, and ZDR mode.