Skip to content
  1. Home
  2. Guides and documents
  3. 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

The summary is ours, written from the README. Spotted an error? See how we work.

More for coding

See the topic →
  • Karpathy-Inspired Claude Code Guidelines

    multica-ai/andrej-karpathy-skills

    One CLAUDE.md with four rules against common LLM coding mistakes

    GuideGitHub stars: 233k
  • Awesome Claude Code

    hesreallyhim/awesome-claude-code

    Curated list of Claude Code skills, agents, tooling and plugins

    GuideGitHub stars: 58k
  • Claude Cookbooks

    anthropics/claude-cookbooks

    Anthropic's notebooks and recipes for building with Claude

    GuideGitHub stars: 55k
  • Claude Cookbooks: Tool Use

    anthropics/claude-cookbooks

    Notebooks on tool calling, memory and context management with Claude

    GuideGitHub stars: 55k