OpenAI Cookbook
by Various
Examples and guides for using the OpenAI API
Apps
OpenAI Cookbook
Added 1 June 2026
Overview
A collection of Jupyter notebooks and code examples demonstrating how to use the OpenAI API for common tasks. Covers prompt engineering, embeddings, fine-tuning, and integration patterns with practical, runnable code samples.
Best for
Best for
Developers new to OpenAI API who learn by reading and running code
Use cases
- Learning OpenAI API fundamentals through working examples
- Copy-paste starter code for embeddings and semantic search
- Understanding prompt engineering best practices
Notes
A collection of Jupyter notebooks and code examples demonstrating how to use the OpenAI API for common tasks. Covers prompt engineering, embeddings, fine-tuning, and integration patterns with practical, runnable code samples.
73,919 stars on GitHub. Last updated 2026-06-01. Licensed MIT.
Use cases
- Learning OpenAI API fundamentals through working examples
- Copy-paste starter code for embeddings and semantic search
- Understanding prompt engineering best practices
Pros
- Maintained by OpenAI with current API patterns
- Executable Jupyter notebooks reduce setup friction
- Covers both basic and advanced use cases
Cons
- Examples may lag behind latest API features
- No structured curriculum, requires self-directed navigation
- Notebook format less suitable for production deployment
Indexed from awesome-generative-ai and enriched against its public facts.
Pros
- Maintained by OpenAI with current API patterns
- Executable Jupyter notebooks reduce setup friction
- Covers both basic and advanced use cases
Cons
- Examples may lag behind latest API features
- No structured curriculum, requires self-directed navigation
- Notebook format less suitable for production deployment
Pairs with
Other entries in the index that connect to this one. Click through to see the chain.
Replit
Community
BabyBeeAGI is a mod of OG BabyAGI - at ~300 lines of code (200 lines without comments, prints, and empty lines). This was built as a continued iteration on the original BabyAGI c
editGPT
Various
editGPT is an AI tool that allows you to proofread, edit, and track changes to your content using ChatGPT
chatgpt-shroud
Community
A Chrome extension enhancing privacy in OpenAI's ChatGPT client. 🛡️ Enables users to easily hide and unhide chat history 🛡️ Operating directly in-browser without accessing or sto
GPT-4 Technical Report
Community
2023-03
Is ChatGPT 175 Billion Parameters? Technical Analysis
Community
[The Next Generation Of Large Language Models ](https://www.notion.so/Awesome-LLM-40c8aa3f2b444ecc82b79ae8bbd2696b)
Langchain Tutorials
Community
Overview and tutorial of the LangChain Library
Prompt Engineering
Community
Prompt Engineering, also known as In-Context Prompting, refers to methods for how to communicate with LLM to steer its behavior for desired outcomes without updating the model we
PromptHub
Community
Test, deploy, and manage your prompts with PromptHub, a prompt management tool for teams. Keep your prompts organized and leverage top-tier templates to get more out of AI.
Reasoning using Language Models
Community
From Chain-of-Thought prompting to OpenAI o1 and DeepSeek-R1 🍓
AI Dungeon
Various
A text-based adventure-story game you direct (and star in) while the AI brings it to life.
AI Governance
Various
Practices and safeguards to deliver secure, responsible, and manageable Generative AI systems in production. Rolling out an AI system without good governance can be really ugly.
AnimatedLLM
Various
Understand how large language models work under the hood.
Awesome ChatGPT
Various
Curated list of awesome tools, demos, docs for ChatGPT and GPT-3
Build an AI Agent (From Scratch)
Various
Build a working AI agent that can reason, plan, and execute multi-step tasks! LLM-powered AI agents are the next leap in applied AI, capable of reasoning and collaboration to ach
ChatGPT prompt engineering for developers
Various
Learn the fundamentals of prompt engineering for ChatGPT. Learn effective prompting, and how to use LLMs for summarizing, inferring, transforming, and expanding.
ChatGPT
OpenAI
General-purpose AI assistant for writing, coding, analysis, and conversation. The most widely deployed consumer AI product.
DALL·E 2
Various
Announcement of the release of DALL·E 2, an advanced image generation system with improved resolution, expanded image creation capabilities, and various safety mitigations. OpenAI
Generative AI: A Creative New World
Various
A powerful new class of large language models is making it possible for machines to write, code, draw and create with credible and even superhuman results.
GPT-3 Demo
Various
800+ ChatGPT and GPT-3 Examples, Demos, Apps, Showcase, and Generative AI Use-cases
GPT Builder
Various
Assistant for creating GPT-based assistants.
GPT for Gmail
Various
AI email assistant for Gmail.
GPT Prompt Engineer
Various
Automated prompt engineering. It generates, tests, and ranks prompts to find the best ones.
How Large Language Models Will Transform Science, Society, and AI
Various
Article summarizing the capabilities and limitations of the GPT-3 model, and its potential impact on society. By Alex Tamkin and Deep Ganguli, February 5, 2021.
Learn Prompting
Various
Learn Prompting is the largest and most comprehensive course in prompt engineering available on the internet, with over 60 content modules, translated into 9 languages, and a thr
Napkin
Various
Napkin AI - The visual AI for business storytelling
OpenAI API
Various
Announcement of the OpenAI API for text-to-text general-purpose AI models based on GPT-3. OpenAI blog, June 11, 2020.
OpenAI Codex
Various
Learn how to use the OpenAI API to generate human-like responses to natural language prompts, analyze images with computer vision, use powerful built-in tools, and more.
OpenAI Playground
Various
Explore resources, tutorials, API docs, and dynamic examples.
OpenAI Prompt Engineering Guide
Various
Learn strategies and tactics for better results using large language models in the OpenAI API.
PromptBase
Various
The #1 marketplace for AI prompts. Find 270,000+ prompts for ChatGPT, Gemini, Midjourney and more. Start creating better AI content, instantly.
PromptPerfect
Various
PromptPerfect - AI Prompt Generator and Optimizer
QuillBot
Various
Write effortlessly and efficiently with Quillbot's suite of AI tools. Paraphrase, check grammar, analyze tone, improve fluency, and more. Start doing your best work.
Transformer Explainer
Various
An interactive visualization tool showing you how transformer models work in large language models (LLM) like GPT.