Examples and guides for using the OpenAI API
Find a file
2025-04-01 09:10:58 +01:00
.github Update authors.yaml and regsitry.yaml url value in pull request template. (#865) 2023-11-27 13:43:20 -08:00
articles Add ZenML LLMops resource boris shared (#1589) 2024-12-02 15:18:48 -08:00
examples updated text content within responses API (#1756) 2025-04-01 09:10:58 +01:00
images Responses API tool orchestration RAG image (#1748) 2025-03-28 20:38:16 -07:00
.gitignore .gitignore symlinks to lib64 (#1162) 2024-04-28 00:42:07 -07:00
authors.yaml Responses API tool orchestration using RAG (#1747) 2025-03-28 14:10:06 -07:00
CONTRIBUTING.md Update CONTRIBUTING.md 2025-03-19 15:29:28 -05:00
LICENSE Update LICENSE 2025-03-19 15:17:46 -05:00
README.md Update README.md 2025-03-19 15:18:16 -05:00
registry.yaml Typo fix on multi language article name (#1755) 2025-03-31 17:35:06 +01:00

OpenAI Cookbook Logo

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=<your API key>, which will be picked up by the notebooks.

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.

License

MIT