Cookbooks

Sora prompting guide
Cookbook guide showing how to prompt Sora 2 in the API.

Codex prompting guide
Cookbook guide on how to prompt GPT-5 Codex to optimize agentic coding workflows.

Agent orchestration & handoffs
Cookbook on coordinating multiple agents via routines and handoffs.

Developing hallucination guardrails
Cookbook for creating guardrails that reduce model hallucinations.

Distillation for model fine-tuning
Cookbook on using model distillation techniques for fine-tuning.

Eval-driven dev — prototype to launch
Cookbook demonstrating eval-driven development workflows.

Evals API — tools evaluation
Cookbook example demonstrating tool evaluation with the Evals API.

GPT-5 prompting guide
Cookbook guide on how to maximize GPT-5's performance.

Graders for Reinforcement Fine-Tuning
Cookbook on how to use graders for RFT tasks. showing different approaches to evaluating models with the OpenAI API.

ImageGen cookbook
Cookbook examples for generating images with GPT-Image.

ImageGen with high fidelity cookbook
Cookbook examples for generating images with high fidelity using GPT-Image.

MCP tool cookbook
Cookbook covering MCP tool usage examples.

Monitor usage with the Cost API
Cookbook showing how to track API usage and costs.

Multi-tool orchestration cookbook
Cookbook showing how to orchestrate multiple tools with Responses API.

o3/o4-mini function calling cookbook
Cookbook for function calling with o3/o4-mini models.

Portfolio collab with Agents SDK
Cookbook example of agents collaborating to manage a portfolio.

Prompt caching 101
Introductory cookbook on implementing prompt caching to reduce token usage.

RAG with PDFs cookbook
Cookbook for retrieval-augmented generation using PDFs.

Realtime translation cookbook
Cookbook for realtime translation using voice API.

Reinforcement fine-tuning — reasoning
Cookbook demonstrating reinforcement fine-tuning to enhance conversational models.

Speech-to-text cookbook
Comparing speech to text methods with the OpenAI API.

Transcription cookbook
Example recipes for transcribing audio using OpenAI APIs.

Fine-tuning cookbook
Cookbook on direct preference optimization for fine-tuning.