The OpenAI Cookbook shares example code 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).
Most code examples are written in Python, though the concepts can be applied in any language.
- API usage
- GPT-3
- Embeddings
- Fine-tuning GPT-3
- DALL-E
- Azure OpenAI (alternative API from Microsoft Azure)
Beyond the code examples here, you can learn about the OpenAI API from the following resources:
- Try out the API in the OpenAI Playground
- Read about the API in the OpenAI Documentation
- Discuss the API in the OpenAI Community Forum
- Look for help in the OpenAI Help Center
- See example prompts in the OpenAI Examples
- Play with a free research preview of ChatGPT
- Stay up to date with the OpenAI Blog
If there are examples or guides you'd like to see, feel free to suggest them on the issues page.