Setup
- Get an API key from platform.openai.com.
- Set the environment variable:
Configuration
- Inline
- Named model
Available models
| Model | Best for | Notes |
|---|---|---|
gpt-5 | Most capable, complex reasoning | Highest capability |
gpt-5-mini | Fast, cost-effective, good reasoning | Recommended default |
gpt-4o | Multimodal, balanced performance | Vision support |
gpt-4o-mini | Simple tasks, lowest cost | Fastest |
Thinking budget
OpenAI reasoning models support an effort level string:Custom endpoint
Usebase_url to connect to OpenAI-compatible APIs such as proxies or Azure OpenAI: