Prerequisites
- An OpenAI API key
openaiPython package
Quickstart
Using environment variables
Streaming responses
Supported models
| Model | Notes |
|---|---|
gpt-4o | Recommended — fast, capable, multimodal |
gpt-4o-mini | Cheaper, slightly lower quality |
gpt-4-turbo | High quality, higher cost |
gpt-3.5-turbo | Fastest and cheapest |