Fork: 8471 Star: 51669 (更新于 2023-12-01 16:10:05)

license: MIT

Language: MDX.

Examples and guides for using the OpenAI API

官方网址 GitHub网址

OpenAI Cookbook Logo

✨ Navigate at

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

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.


The OpenAI Cookbook is a community-driven resource. Whether you're submitting an idea, fixing a typo, adding a new guide, or improving an existing one, your contributions are greatly appreciated!

Before contributing, read through the existing issues and pull requests to see if someone else is already working on something similar. That way you can avoid duplicating efforts.

If there are examples or guides you'd like to see, feel free to suggest them on the issues page.

If you'd like to contribute new content, make sure to read through our contribution guidelines. We welcome high-quality submissions of new examples and guides, as long as they meet our criteria and fit within the scope of the cookbook.

The contents of this repo are automatically rendered into based on registry.yaml.

Open in GitHub Codespaces

最近版本更新:(数据更新于2023-11-30 22:00:28)


chatgpt, docs, gpt-3, gpt-4, openai


2023-10-24 02:31:49 uidotdev/usehooks

2023-09-29 19:14:55 yewstack/yew

2023-07-29 03:23:36 react-native-elements/react-native-elements

1970-01-01 00:00:00 withastro/docs

1970-01-01 00:00:00 hackclub/putting-the-you-in-cpu

1970-01-01 00:00:00 Privoce/vocechat-doc