✨ Navigate at cookbook.openai.com Example code and guides for accomplishing common tasks with the OpenAI API. To run these examples, you'll need an OpenAI account and associated API key (create a free account here). Set an environment variable called OPENAI_API_KEY with your API key. Alternatively, in most IDEs such as Visual Studio Code, you can create an .env file at the root of your repo containing OPENAI_API_KEY= , which will be picked up by the notebooks.
为什么适合这个 AI 门户
拿来补 API 教程、Prompt 模板和上手案例。
站内可套用方向
API 教程
Prompt 模板
模型上手页
建议产出格式
专题聚合页
方法论教程
对比清单
站内摘要
源文件预览
<a href="https://cookbook.openai.com" target="_blank">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="/images/openai-cookbook-white.png" style="max-width: 100%; width: 400px; margin-bottom: 20px">
<img alt="OpenAI Cookbook Logo" src="/images/openai-cookbook.png" width="400px">
</picture>
</a>
<h3></h3>
> ✨ Navigate at [cookbook.openai.com](https://cookbook.openai.com)
Example code and guides for accomplishing common tasks with the [OpenAI API](https://platform.openai.com/docs/introduction). To run these examples, you'll need an OpenAI account and associated API key ([create a free account here](https://p
Most code examples are written in Python, though the concepts can be applied in any language.
For other useful tools, guides and courses, check out these [related resources from around the web](https://cookbook.openai.com/related_resources).
## License
MIT License
<picture>
<source media="(prefers-color-scheme: dark)" srcset="/images/openai-cookbook-white.png" style="max-width: 100%; width: 400px; margin-bottom: 20px">
<img alt="OpenAI Cookbook Logo" src="/images/openai-cookbook.png" width="400px">
</picture>
</a>
<h3></h3>
> ✨ Navigate at [cookbook.openai.com](https://cookbook.openai.com)
Example code and guides for accomplishing common tasks with the [OpenAI API](https://platform.openai.com/docs/introduction). To run these examples, you'll need an OpenAI account and associated API key ([create a free account here](https://p
Most code examples are written in Python, though the concepts can be applied in any language.
For other useful tools, guides and courses, check out these [related resources from around the web](https://cookbook.openai.com/related_resources).
## License
MIT License