OpenAI Cookbook
Example code and guides, mostly in Python, that show how to accomplish common tasks with the OpenAI API.
OpenAI Cookbook is a collection of example code and guides for accomplishing common tasks with the OpenAI API. Running the examples requires an OpenAI account and an API key, set as the OPENAI_API_KEY environment variable or placed in a .env file that many IDEs, including Visual Studio Code, will pick up automatically for the accompanying notebooks.
Most of the examples are written in Python, though the underlying concepts can be applied in other languages. The project also links out to other tools, guides and courses from across the web for readers who want material beyond what is in the repository itself. It is released under the MIT license and primarily distributed as Jupyter notebooks, with a companion website for browsing the examples.