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.
Language agents: a critical evolutionary step of artificial intelligence
Community
Yu Su (OSU), Sep 5, 2023.
Awesome Deliberative Prompting
Community
Awesome deliberative prompting: How to ask LLMs to produce reliable reasoning and make reason-responsive decisions.
BUILD GPT: HOW AI WORKS
Community
Amazon.com
GPT-4 Technical Report
Community
2023-03
Hands-On Large Language Models: Language Understanding and Generation
Community
Hands-On Large Language Models
Izlo
Community
Izlo provides prompting tools for teams unleash efficiency and unlock the prompts trapped in your code, documents, and spreadsheets.
Language Models are Unsupervised Multitask Learners
Community
2019-02
OpenAI o3-mini
Community
Pushing the frontier of cost-effective reasoning.
Princeton: Understanding Large Language Models
Community
COS 597G: Understanding Large Language Models
PromptPerfect
Community
PromptPerfect - AI Prompt Generator and Optimizer
ReliableGPT 💪
Community
Handle OpenAI Errors (overloaded OpenAI servers, rotated keys, or context window errors) for your production LLM Applications.
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.
Anthropic courses
Various
Anthropic's educational courses
Awesome ChatGPT
Various
Curated list of awesome tools, demos, docs for ChatGPT and GPT-3
Awesome RAG Production
Various
A curated list of battle-tested tools, frameworks, and best practices for building scalable, production-grade Retrieval-Augmented Generation (RAG) systems.
Bing Image Creator
Various
Create stunning images with Bing Image Creator, the best free AI image generator. Turn text into AI art, photos, and visuals instantly, all for free.
Build a Reasoning Model (From Scratch)
Various
Understand LLM reasoning by creating your own reasoning model–from scratch! LLM reasoning models have the power to tackle truly challenging problems that require finding the righ
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
editGPT
Various
editGPT is an AI tool that allows you to proofread, edit, and track changes to your content using ChatGPT
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 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
MaxVideoAI
Various
Browse real AI video examples with prompts, model settings, duration and pricing. Clone a shot into your workspace and render with Kling, Seedance, LTX or Veo.
Open LLMs
Various
📋 A list of open LLMs available for commercial use.
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 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 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.
PromptHero
Various
The #1 website for Artificial Intelligence and Prompt Engineering. Search the world's best AI prompts for models like Stable Diffusion, ChatGPT, Midjourney...
PromptPerfect
Various
PromptPerfect - AI Prompt Generator and Optimizer
The Generative AI Index
Various
Explore the "Microsite" view on Airtable.