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
Open-source & AI alternatives
Swap-in tools that solve the same job. Weigh the trade-offs before you commit.
Pairs with
Other entries in the index that connect to this one. Click through to see the chain.
Prompt Engineering Guide
Various
🐙 Guides, papers, lessons, notebooks and resources for prompt engineering, context engineering, RAG, and AI Agents.
Anthropic courses
Various
Anthropic's educational courses
llm-course
Community
Course to get into Large Language Models (LLMs) with roadmaps and Colab notebooks.
Awesome ChatGPT
Various
Curated list of awesome tools, demos, docs for ChatGPT and GPT-3
What are GPT Agents? A deep dive into the AI interface of the future
Community
Learn why Agents are a core part of the future of AI, Logan Kilpatrick (OpenAI), Jul 25, 2023.
Awesome ChatGPT Prompts
Community
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.
Awesome Deliberative Prompting
Community
Awesome deliberative prompting: How to ask LLMs to produce reliable reasoning and make reason-responsive decisions.
Build a Large Language Model (From Scratch)
Community
How to implement LLM attention mechanisms and GPT-style transformers.
BUILD GPT: HOW AI WORKS
Community
Amazon.com
Chain-of-Thought Hub
Community
Benchmarking large language models' complex reasoning ability with chain-of-thought prompting
Chain-of-Thoughts Papers
Community
A trend starts from "Chain of Thought Prompting Elicits Reasoning in Large Language Models".
Instruction-Tuning-Papers
Community
Reading list of Instruction-tuning. A trend starts from Natrural-Instruction (ACL 2022), FLAN (ICLR 2022) and T0 (ICLR 2022).
Is ChatGPT 175 Billion Parameters? Technical Analysis
Community
[The Next Generation Of Large Language Models ](https://www.notion.so/Awesome-LLM-40c8aa3f2b444ecc82b79ae8bbd2696b)
Language models are few-shot learners
Community
2020-05
Learn LangChain (JS)
Community
End-to-end LangChain JS learning repo with real examples: prompts, tools, RAG, agents, and LangGraph workflows.
LLMsPracticalGuide
Community
A curated list of practical guide resources of LLMs (LLMs Tree, Examples, Papers)
Princeton: Understanding Large Language Models
Community
COS 597G: Understanding Large Language Models
Promptify
Community
Prompt Engineering | Prompt Versioning | Use GPT or other prompt based models to get structured output. Join our discord for Prompt-Engineering, LLMs and other latest research
RWKV-howto
Community
possibly useful materials for learning RWKV language model.
ShareGPT
Community
ShareGPT is a Chrome extension that allows you to share your wildest ChatGPT conversations with one click.
The Chinese Book for Large Language Models
Community
AI Box | 大语言模型
Large Language Models Course
Community
Practical course about Large Language Models.
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.
AI Prompt Genius
Various
Discover, share, import, and use the best prompts for ChatGPT & save your chat history locally.
AnimatedLLM
Various
Understand how large language models work under the hood.
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 for Sheets, Docs, Slides, Forms
Various
ChatGPT extension for Google Sheets, Google Docs, Google Slides, Google Forms.
ChatGPT Heralds an Intellectual Revolution
Various
An op-ed by Henry Kissinger, Eric Schmidt and Daniel Huttenlocher. Wall Street Journal, February 24, 2023.
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 Prompts for Data Science
Various
A repository of 60 useful data science prompts for ChatGPT
ChatGPT
OpenAI
General-purpose AI assistant for writing, coding, analysis, and conversation. The most widely deployed consumer AI product.
copy.ai
Various
Introducing the first-ever GTM AI platform. Automate hundreds of tedious, repetitive tasks and empower your team to scale success like never before.
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 Engineer
Various
CLI platform to experiment with codegen. Precursor to: https://lovable.dev
GPT Builder
Various
Assistant for creating GPT-based assistants.
GPT for Sheets and Docs
Various
ChatGPT extension for Google Sheets and Google Docs.
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.
imgsys
Various
A generative AI arena where you can test different prompts and pick the results you like the most. Check-out the model rankings and try it yourself!
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.
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.
rehydra
Various
Prevent accidental PII leakage in LLM prompts before they hit the model.
Sora
Various
Presentation of Sora, a large video generation model. OpenAI, February 15, 2024.
The Generative AI Index
Various
Explore the "Microsite" view on Airtable.
WebChatGPT
Various
Augment your ChatGPT prompts with relevant results from the web.
Humanize-Text
Various
Open-source pipeline and reference implementations for improving the readability and natural cadence of AI-assisted drafts.
Get the free Developer’s Field Guide
A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.
Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.
