- Home
- Guides and documents
- OpenAI Cookbook
OpenAI Cookbook
Official examples and guides for common OpenAI API tasks
What it is
OpenAI's public collection of example code and written guides, also browsable at cookbook.openai.com. The examples folder spans the Agents SDK, Responses API, evals, MCP, Codex, deep research, voice, vision, fine-tuning and vector databases. Mostly Python notebooks for developers building on OpenAI models.
Good for
- Find a worked example for an API feature
- Learn the Agents SDK from notebooks
- Set up evals for a prompt
What you need
OpenAI API key; Python and Jupyter
Worth knowingVery large and uneven: older notebooks target retired models, so check the date on each example.
Sources
- https://github.com/openai/openai-cookbook (project README, read 11 Nov 2026)
- https://api.github.com/repos/openai/openai-cookbook (GitHub API, read 13 Nov 2026)
The summary is ours, written from the README. Spotted an error? See how we work.