#66th of 8 in Learning and cookbooks

openai-cookbook

Example notebooks and guides for building with the OpenAI API

Stars
76.6k
License
MIT
Last commit
Oct 2026
Language
Jupyter Notebook

Checked on GitHub.

OpenAI is hiring: 808 open roles

Overview

Collection of runnable Jupyter notebooks and guides showing common tasks with the OpenAI API. Most examples are in Python, and the README says the concepts apply to other languages. Running them requires an OpenAI account and an API key set as OPENAI_API_KEY. The guides are also browsable at cookbook.openai.com.

Who it is for: Developers learning to build with the OpenAI API

Strengths

  • Maintained by OpenAI, so examples track the official API
  • Runnable notebooks; API key is read from OPENAI_API_KEY or a .env file
  • Also browsable as a site at cookbook.openai.com
  • MIT license

Weaknesses

  • Requires an OpenAI account and API key; examples do not target local models
  • Most examples are Python only
  • README does not list topics, versions or per-notebook dependencies
  • No tagged releases

What it needs

  • no GPU
  • Needs OpenAI API key, Jupyter
  • Models: OpenAI API models

Also in Learning and cookbooks

See all 8
Also in Learning and cookbooks
RankProjectScore
1generative-ai-for-beginners21-lesson course on building generative AI apps in Python and TypeScript121.3k starsMIT80 out of 100
2ai-engineering-from-scratchHands-on curriculum for building AI systems from math to agents68.4k starsMIT75 out of 100
3llms-from-scratchCode for the book on building a GPT-style LLM in PyTorch106.5k starscustom license74 out of 100
#4hello-agentsChinese-language course on building LLM agents from scratch82.9k starscustom license72 out of 100
#5ai-agents-for-beginners18-lesson course on building AI agents with Microsoft Agent Framework77.1k starsMIT70 out of 100