openai/openai-cookbook
Examples and guides for using the OpenAI API
Provides runnable Jupyter notebooks and Python scripts covering practical workflows like embeddings, semantic search, fine-tuning, and retrieval-augmented generation (RAG). Examples demonstrate best practices for prompt engineering, token counting, and cost optimization across GPT and embedding models. The project uses environment-based API key configuration and includes language-agnostic conceptual guidance applicable beyond Python implementations.
72,080 stars. Actively maintained with 5 commits in the last 30 days.
Stars
72,080
Forks
12,145
Language
Jupyter Notebook
License
MIT
Category
Last pushed
Mar 12, 2026
Commits (30d)
5
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/openai/openai-cookbook"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
rgbkrk/dangermode
Execute IPython & Jupyter from the comforts of chat.openai.com
CogStack/OpenGPT
A framework for creating grounded instruction based datasets and training conversational domain...
voidful/TextRL
Implementation of ChatGPT RLHF (Reinforcement Learning with Human Feedback) on any generation...
antononcube/Python-JupyterChatbook
Python package of a Jupyter extension that facilitates the interaction with LLMs.
Declipsonator/GPTZzzs
Large language model detection evasion through grammar and vocabulary modifcation.