Skip to content

Examples and guides for using the OpenAI API

Archive thirty-seven Cookbook guides and examples (#3027)

Konstantine Kahadzea7c8782de788
diff --git a/registry.yaml b/registry.yaml
index 053c6e66..bb6639f9 100644
--- a/registry.yaml
+++ b/registry.yaml
@@ -315,6 +315,7 @@
- promptfoo
- partners
- security
+ archived: true
- title: Realtime Eval Guide
path: examples/Realtime_eval_guide.ipynb
@@ -356,6 +357,7 @@
- transcription
- speech
- audio
+ archived: true
- title: Self-Evolving Agents - A Cookbook for Autonomous Agent Retraining
path: examples/partners/self_evolving_agents/autonomous_agent_retraining.ipynb
@@ -374,6 +376,7 @@
- llmops
- prompt-engineering
- agent-retraining
+ archived: true
- title: User guide for gpt-oss-safeguard
path: articles/gpt-oss-safeguard-guide.md
@@ -395,6 +398,7 @@
tags:
- agentkit
- evals
+ archived: true
- title: Building with Realtime Mini
path: examples/building_w_rt_mini/building_w_rt_mini.ipynb
@@ -418,6 +422,7 @@
tags:
- sora
- prompt
+ archived: true
- title: Using PLANS.md for multi-hour problem solving
path: articles/codex_exec_plans.md
@@ -576,6 +581,7 @@
- gpt-5
- functions
- reasoning
+ archived: true
- title: How to run gpt-oss-20b on Google Colab
path: articles/gpt-oss/run-colab.ipynb
@@ -724,6 +730,7 @@
- responses
- agents-sdk
- tracing
+ archived: true
- title: Automate Jira ↔ GitHub with Codex
path: examples/codex/jira-github.ipynb
@@ -735,6 +742,7 @@
tags:
- codex
- automation
+ archived: true
- title: Prompt Migration Guide
path: examples/Prompt_migration_guide.ipynb
@@ -747,6 +755,7 @@
- prompt
- completions
- responses
+ archived: true
- title: Fine-Tuning Techniques - Choosing Between SFT, DPO, and RFT (With a Guide to DPO)
path: examples/Fine_tuning_direct_preference_optimization_guide.ipynb
@@ -756,6 +765,7 @@
- alexl-oai
tags:
- fine-tuning
+ archived: true
- title: MCP-Powered Agentic Voice Framework
path: examples/partners/mcp_powered_voice_agents/mcp_powered_agents_cookbook.ipynb
@@ -771,6 +781,7 @@
- agents-sdk
- functions
- tracing
+ archived: true
- title: Building a Supply-Chain Copilot with OpenAI Agent SDK and Databricks MCP Servers
path: examples/mcp/databricks_mcp_cookbook.ipynb
@@ -783,6 +794,7 @@
- mcp
- tracing
- security
+ archived: true
- title: Eval Driven System Design - From Prototype to Production
path: examples/partners/eval_driven_system_design/receipt_inspection.ipynb
@@ -801,6 +813,7 @@
- responses
- functions
- tracing
+ archived: true
- title: Multi-Agent Portfolio Collaboration with OpenAI Agents SDK
path: examples/agents_sdk/multi-agent-portfolio-collaboration/multi_agent_portfolio_collaboration.ipynb
@@ -815,6 +828,7 @@
- functions
- responses
- mutli-agent-collaboration
+ archived: true
- title: o3/o4-mini Function Calling Guide
path: examples/o-series/o3o4-mini_prompting_guide.ipynb
@@ -841,6 +855,7 @@
- reinforcement-learning
- fine-tuning
- reinforcement-learning-graders
+ archived: true
- title: Reinforcement Fine-Tuning for Conversational Reasoning with the OpenAI API
path: examples/fine-tuned_qa/reinforcement_finetuning_healthbench.ipynb
@@ -854,6 +869,7 @@
- qa
- evals
- reinforcement
+ archived: true
- title: Guide to Using the Responses API's MCP Tool
path: examples/mcp/mcp_tool_guide.ipynb
@@ -865,6 +881,7 @@
tags:
- mcp
- security
+ archived: true
- title: Image Understanding with RAG
path: examples/multimodal/image_understanding_with_rag.ipynb
@@ -877,6 +894,7 @@
- images
- RAG
- vision
+ archived: true
- title: Better performance from reasoning models using the Responses API
path: examples/responses_api/reasoning_items.ipynb
@@ -887,6 +905,7 @@
tags:
- responses
- functions
+ archived: true
- title: Context Summarization with Realtime API
path: examples/Context_summarization_with_realtime_api.ipynb
@@ -898,6 +917,7 @@
- audio
- speech
- tiktoken
+ archived: true
- title: Comparing Speech-to-Text Methods with the OpenAI API
path: examples/Speech_transcription_methods.ipynb
@@ -910,6 +930,7 @@
- audio
- speech
- agents-sdk
+ archived: true
- title: Practical Guide for Model Selection for Real‑World Use Cases
path: examples/partners/model_selection_guide/model_selection_guide.ipynb
@@ -929,6 +950,7 @@
- insurance
- legal
- pharma
+ archived: true
- title: Evals API Use-case - Detecting prompt regressions
path: examples/evaluation/use-cases/regression.ipynb
@@ -987,6 +1009,7 @@
- functions
- pinecone
- web-search
+ archived: true
- title: Automating Dispute Management with Agents SDK and Stripe API
path: examples/agents_sdk/dispute_agent.ipynb
@@ -1242,6 +1265,7 @@
tags:
- completions
- embeddings
+ archived: true
- title: How to stream completions
path: examples/How_to_stream_completions.ipynb
@@ -3155,6 +3179,7 @@
tags:
- completions
- security
+ archived: true
- title: Doing RAG on PDFs using File Search in the Responses API
path: examples/File_Search_Responses.ipynb
@@ -3216,6 +3241,7 @@
tags:
- evals
- agents-sdk
+ archived: true
- title: GPT Actions library - Salesforce & Gong
path: examples/chatgpt/gpt_actions_library/gpt_action_salesforce_gong.md
@@ -3239,6 +3265,7 @@
tags:
- responses
- api
+ archived: true
- title: Generate images with GPT Image
path: examples/Generate_Images_With_GPT_Image.ipynb
@@ -3274,6 +3301,7 @@
- agents
- agents-sdk
- parallel-agents
+ archived: true
- title: Practical guide to data-intensive apps with the Realtime API
path: examples/Data-intensive-Realtime-apps.ipynb
@@ -3367,6 +3395,7 @@
- responses
- mcp
- deep-research
+ archived: true
- title: Deep Research API with the Agents SDK
path: examples/deep_research_api/introduction_to_deep_research_api_agents.ipynb
@@ -3381,6 +3410,7 @@
- deep-research
- agents
- agents-sdk
+ archived: true
- title: Building a Deep Research MCP Server
path: examples/deep_research_api/how_to_build_a_deep_research_mcp_server/README.md
@@ -3396,6 +3426,7 @@
- deep-research
- agents
- agents-sdk
+ archived: true
- title: Generate images with high input fidelity
path: examples/Generate_Images_With_High_Input_Fidelity.ipynb
@@ -3406,6 +3437,7 @@
- katiagg
tags:
- images
+ archived: true
- title: Use Codex CLI to automatically fix CI failures
path: examples/codex/Autofix-github-actions.ipynb
@@ -3439,6 +3471,7 @@
tags:
- codex
- security
+ archived: true
- title: Context Engineering for Personalization - State Management with Long-Term Memory Notes
path: examples/agents_sdk/context_personalization.ipynb
@@ -3458,6 +3491,7 @@
tags:
- agents-sdk
- security
+ archived: true
- title: GPT-5.1 Prompting Guide
path: examples/gpt-5/gpt-5-1_prompting_guide.ipynb
@@ -3467,6 +3501,7 @@
- samarth-oai
tags:
- gpt-5.1
+ archived: true
- title: Codex Prompting Guide
path: examples/gpt-5/codex_prompting_guide.ipynb
@@ -3519,6 +3554,7 @@
- emreokcular
tags:
- gpt-5.2
+ archived: true
- title: Gpt-image-1.5 Prompting Guide
path: examples/multimodal/image-gen-1.5-prompting_guide.ipynb
@@ -3532,6 +3568,7 @@
tags:
- images
- vision
+ archived: true
- title: Prompt Personalities
path: examples/gpt-5/prompt_personalities.ipynb