Get inspired and build

Monitor usage with the Cost API

Monitor usage with the Cost API

Cookbook showing how to track API usage and costs.

cookbook
Distillation for model fine-tuning

Distillation for model fine-tuning

Cookbook on using model distillation techniques for fine-tuning.

cookbook
Eval-driven dev — prototype to launch

Eval-driven dev — prototype to launch

Cookbook demonstrating eval-driven development workflows.

cookbook
Evals API — tools evaluation

Evals API — tools evaluation

Cookbook example demonstrating tool evaluation with the Evals API.

cookbook
Fine-tuning cookbook

Fine-tuning cookbook

Cookbook on direct preference optimization for fine-tuning.

cookbook
GPT-5 prompting guide

GPT-5 prompting guide

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

cookbook
Graders for Reinforcement Fine-Tuning

Graders for Reinforcement Fine-Tuning

Cookbook on how to use graders for RFT tasks. showing different approaches to evaluating models with the OpenAI API.

cookbook
Developing hallucination guardrails

Developing hallucination guardrails

Cookbook for creating guardrails that reduce model hallucinations.

cookbook
ImageGen cookbook

ImageGen cookbook

Cookbook examples for generating images with GPT-Image.

cookbook
ImageGen with high fidelity cookbook

ImageGen with high fidelity cookbook

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

cookbook
MCP tool cookbook

MCP tool cookbook

Cookbook covering MCP tool usage examples.

cookbook
Portfolio collab with Agents SDK

Portfolio collab with Agents SDK

Cookbook example of agents collaborating to manage a portfolio.

cookbook
Multi-tool orchestration cookbook

Multi-tool orchestration cookbook

Cookbook showing how to orchestrate multiple tools with Responses API.

cookbook
o3/o4-mini function calling cookbook

o3/o4-mini function calling cookbook

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

cookbook
Agent orchestration & handoffs

Agent orchestration & handoffs

Cookbook on coordinating multiple agents via routines and handoffs.

cookbook
Prompt caching 101

Prompt caching 101

Introductory cookbook on implementing prompt caching to reduce token usage.

cookbook
RAG with PDFs cookbook

RAG with PDFs cookbook

Cookbook for retrieval-augmented generation using PDFs.

cookbook
Realtime translation cookbook

Realtime translation cookbook

Cookbook for realtime translation using voice API.

cookbook
Reinforcement fine-tuning — reasoning

Reinforcement fine-tuning — reasoning

Cookbook demonstrating reinforcement fine-tuning to enhance conversational models.

cookbook
Speech-to-text cookbook

Speech-to-text cookbook

Comparing speech to text methods with the OpenAI API.

cookbook
Transcription cookbook

Transcription cookbook

Example recipes for transcribing audio using OpenAI APIs.

cookbook