openai/openai-cookbook

Examples and guides for using the OpenAI API

65
/ 100
Established

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.

No Package No Dependents
Maintenance 16 / 25
Adoption 10 / 25
Maturity 16 / 25
Community 23 / 25

How are scores calculated?

Stars

72,080

Forks

12,145

Language

Jupyter Notebook

License

MIT

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.