Skip to content
This page is not translated yet — showing the original. We never ship machine translation as a placeholder.
Download & installMIT Tested

OpenAI Cookbook

In one line:OpenAI Cookbook 是一个 OpenAI 官方示例集:能直接抄的代码,覆盖常见 API 用法与坑。

OpenAI Cookbook 是一个 OpenAI 官方示例集:能直接抄的代码,覆盖常见 API 用法与坑。

Official source

We host and mirror nothing — the official page is the source of truth.

Official icon for OpenAI Cookbook OpenAIhttps://github.com/openai/openai-cookbookOpen official page
Official sourceYou are leaving AIWorksWell for OpenAI. That site is not under our control; its content, privacy and security are its own responsibility. Please judge for yourself.

Read the original (we index it, never rehost it)

https://github.com/openai/openai-cookbookOpenAIYou are leaving AIWorksWell for OpenAI. That site is not under our control; its content, privacy and security are its own responsibility. Please judge for yourself.
Contact the original author (OpenAI)

Bugs in the software itself go to the author's own official channel — that is where they actually receive them. We pass things on; we do not answer for the author.

About this entry

它是什么

OpenAI Cookbook 是 OpenAI 官方的示例仓库(MIT 许可),按「要做一件事」组织:结构化输出、函数调用、嵌入与检索、评测、图像、语音,每篇是一份可直接跑的 notebook。来源:https://github.com/openai/openai-cookbookhttps://github.com/openai/openai-cookbook

怎么用起来

挑一篇与你目标最接近的 notebook,改几行就能跑。要在线阅读,用网页版 https://cookbook.openai.comhttps://cookbook.openai.com 更好读。来源:https://github.com/openai/openai-cookbookhttps://github.com/openai/openai-cookbook

来源与署名

Mentioned from:https://github.com/openai/openai-cookbookhttps://github.com/openai/openai-cookbook · 原作者 OpenAI(MIT)。

Summary for AI

把 OpenAI 官方示例集整理成可顺序阅读的章节,覆盖常见 API 用法、参数取值与踩坑,代码可直接抄改。适合不想一篇篇翻仓库、想顺着把常用接口过一遍的人。

A self-contained answer paragraph — this is the part AI search quotes. · Page reviewed 2026-10-06

FAQ

和 Cookbook 仓库是同一份内容吗?

同源。仓库是逐篇示例,这份把它整理成能顺着读的章节。

许可能商用吗?

仓库标的是 MIT,可自由取用;引用时按 MIT 保留署名。

You might also like

We store, mirror and repackage nothing. Every install path points to the author’s own official page.

Nothing here has been reviewed by an app store. Judge the source and licence yourself; you install at your own risk.