#1111th of 171 in Learning and cookbooks

openai-cookbook

Runnable notebooks and guides for common tasks with the OpenAI API

Stars
77.6k
License
MIT
Last commit
Nov 2026
Language
Jupyter Notebook
Stars, last 35 weeks+6,039
24 Mar 2026: 71,521 stars31 Mar 2026: 71,706 stars7 Apr 2026: 71,888 stars14 Apr 2026: 72,036 stars21 Apr 2026: 72,182 stars28 Apr 2026: 72,408 stars5 May 2026: 72,622 stars12 May 2026: 72,858 stars19 May 2026: 73,057 stars26 May 2026: 73,240 stars2 Jun 2026: 73,415 stars9 Jun 2026: 73,603 stars16 Jun 2026: 73,748 stars23 Jun 2026: 73,909 stars30 Jun 2026: 74,065 stars7 Jul 2026: 74,188 stars14 Jul 2026: 74,314 stars21 Jul 2026: 74,440 stars28 Jul 2026: 74,635 stars4 Aug 2026: 74,790 stars11 Aug 2026: 74,912 stars18 Aug 2026: 75,076 stars25 Aug 2026: 75,316 stars1 Sept 2026: 75,480 stars8 Sept 2026: 75,659 stars15 Sept 2026: 75,828 stars22 Sept 2026: 75,982 stars29 Sept 2026: 76,146 stars6 Oct 2026: 76,294 stars13 Oct 2026: 76,525 stars20 Oct 2026: 76,673 stars27 Oct 2026: 76,823 stars3 Nov 2026: 76,953 stars10 Nov 2026: 77,080 stars17 Nov 2026: 77,285 stars24 Nov 2026: 77,560 stars

71,521 on 24 Mar 202677,560 on 24 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

On Hacker NewsRead 29 Nov 2026 from Hacker News search.

OpenAI is hiring: 877 open roles

Overview

A collection of example code and guides, mostly Python Jupyter notebooks, showing how to accomplish common tasks with the OpenAI API. It is published as a browsable site at cookbook.openai.com. Running the examples requires an OpenAI account and an OPENAI_API_KEY environment variable.

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

Strengths

  • Maintained by OpenAI, so examples track the official API
  • Examples are runnable notebooks, mostly Python, with a searchable website
  • MIT license permits reuse of the code

Weaknesses

  • Requires a paid-capable OpenAI account and API key to run examples
  • Tied to OpenAI's API; local models are not the focus
  • No installable package or app, only notebooks and guides

What it needs

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

Also in Learning and cookbooks

See all 171
Also in Learning and cookbooks
RankProjectScore
#9machine-learning-for-tradingCode for the book on ML trading strategies, with nine case studies22.1k starsMIT79 out of 100
#10ai-infra-bookA quantitative book on AI infrastructure design, with calculation tools Live demo ↗ (opens in a new tab)8.4k starsApache-2.079 out of 100
#12llms-from-scratchBook code for building, pretraining and finetuning a GPT-style LLM in PyTorch109.3k starscustom license77 out of 100
#13awesome-ai-appsCollection of 141 runnable LLM agent and RAG example apps17.2k starsMIT77 out of 100
#14ml-for-beginners12-week, 26-lesson classic machine learning course using Scikit-learn Live demo ↗ (opens in a new tab)92.5k starsMIT76 out of 100