AIAny
GitHub

openai-cookbook

Official collection of example notebooks and guides for building with the OpenAI API — text generation, embeddings, function calling, RAG, fine-tuning, and more. Mostly runnable Jupyter notebooks (~93%); mirrored at cookbook.openai.com.

Introduction

Most people meet the OpenAI API through a single chat-completion snippet, then hit a wall the moment they need retrieval, evaluation, or structured output. This repo is where OpenAI itself answers those follow-up questions — a maintained library of working recipes, each one a runnable notebook rather than prose, so you copy a tested pattern instead of reverse-engineering one.

What Sets It Apart
  • Roughly 93% of the content is executable Jupyter notebooks, not documentation — you run the cell, see the output, then adapt it. The gap between "reading about embeddings" and "having a working embedding pipeline" is one click.
  • It is maintained by OpenAI staff alongside the community, so recipes track the current API surface (function calling, structured outputs, retrieval patterns) rather than drifting out of date like most third-party tutorials.
  • Coverage spans the full applied stack — text generation, embeddings and vector search, RAG, function calling, fine-tuning, evals, and multimodal — instead of one narrow topic, so it doubles as a map of what the API can actually do.
Who It's For

Great fit if you are a developer who learns by running code and wants a vetted starting point for a concrete task — "how do I do RAG with embeddings," "how do I shape function-calling output." Look elsewhere if you want conceptual depth or model internals (this is recipes, not theory), if you are not building on the OpenAI API specifically, or if you need a packaged framework — these are standalone examples you assemble yourself, not a library you import.

Information

  • Websitegithub.com
  • AuthorsOpenAI
  • Published date2022/03/11

More Items

GitHub
AI Infra2026

Provides a unified tool catalog and proxy for AI agents: one team token lets agents call thousands of third-party endpoints (and your team’s keys) with per-call pricing. Injects credentials server‑side so agents never hold provider secrets, and exposes CLI/skill recipes and OAuth tools for team-wide use.

GitHub
AI API2026

Captures an app's network traffic, extracts its authentication/session bundle, and auto-generates an editable Python client to call the app's API. Supports mitmproxy, cURL and HAR capture backends and provides Session helpers for replay and token refresh.

GitHub
AI API2025

Gateway that pools multiple AI subscription accounts and issues platform API keys while handling authentication, token-level billing, load balancing, rate limits, and per-user/account concurrency—enables shared subscriptions for Claude, OpenAI, Gemini and Grok.