AIAny
Icon for item

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 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.

GitHub
AI API2026

Exposes a ChatGPT account as an OpenAI-compatible local API and SDK set, enabling chat, streaming, and image-generation calls via a dev proxy or "Sign in with ChatGPT". Includes a CLI and TypeScript/React adapters; unofficial and uses user ChatGPT credentials.

GitHub
AI API2020

Provides a self-hosted machine translation HTTP API that runs offline using the open-source Argos Translate engine; offers Docker-based deployment and a simple HTTP interface for integration. Suited for privacy-conscious or offline translation deployments.