# openai/openai-cookbook

> Examples and guides for using the OpenAI API

- GitHub: https://github.com/openai/openai-cookbook
- Website: https://cookbook.openai.com
- Category: Learning & Lists (https://ideas.asveas.com/c/learning); also LLM & Inference
- Tags: chatgpt, gpt-4, openai, openai-api, jupyter-notebook
- Language: Jupyter Notebook · License: MIT
- Stars: 77,049 · Forks: 13,054 · Open issues: 359
- Last push: 2026-11-11 (today)
- Vibe score: 95/100

## What it is
Example code and guides for accomplishing common tasks with the OpenAI API. To run these examples, you'll need an OpenAI account and associated API key (create a free account here). Set an environment variable called OPENAIAPIKEY with your API key. Alternatively, in most IDEs such as Visual Studio Code, you can create an .env file at the root of your repo containing OPENAIAPIKEY= , which will be picked up by the notebooks.

## When to use it
Reach for openai-cookbook when you want to learn a topic, find more tools, or borrow battle-tested prompts and examples — it's written in Jupyter Notebook and fits stacks tagged chatgpt, gpt-4, openai, openai-api.

## Maintenance
openai/openai-cookbook looks very actively maintained: the last push was today (2026-11-11), with 77,049 stars and 359 open issues.

## Quick start
```bash
git clone https://github.com/openai/openai-cookbook.git
```

## Alternatives in Learning & Lists
- [public-apis/public-apis](https://github.com/public-apis/public-apis) — A collective list of free APIs (★498k, Python, vibe 100/100) · details: https://ideas.asveas.com/r/public-apis/public-apis
- [nilbuild/developer-roadmap](https://github.com/nilbuild/developer-roadmap) — Interactive roadmaps, guides and other educational content to help developers grow in their careers. (★372k, TypeScript, vibe 100/100) · details: https://ideas.asveas.com/r/nilbuild/developer-roadmap
- [f/prompts.chat](https://github.com/f/prompts.chat) — f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy. (★177k, MDX, vibe 98/100) · details: https://ideas.asveas.com/r/f/prompts.chat
- [Shubhamsaboo/awesome-llm-apps](https://github.com/Shubhamsaboo/awesome-llm-apps) — 100+ AI Agents, Agent Skills and RAG Apps - Free and Open Source. (★144k, Python, vibe 97/100) · details: https://ideas.asveas.com/r/Shubhamsaboo/awesome-llm-apps
- [codecrafters-io/build-your-own-x](https://github.com/codecrafters-io/build-your-own-x) — Master programming by recreating your favorite technologies from scratch. (★562k, Markdown, vibe 94/100) · details: https://ideas.asveas.com/r/codecrafters-io/build-your-own-x
- [VoltAgent/awesome-design-md](https://github.com/VoltAgent/awesome-design-md) — A collection of DESIGN.md files analysis by popular brand design systems. Drop one into your project and let coding agents generate a matching UI. (★127k, vibe 93/100) · details: https://ideas.asveas.com/r/VoltAgent/awesome-design-md

---
Source: https://ideas.asveas.com/r/openai/openai-cookbook · Catalog: https://ideas.asveas.com/llms.txt
