OpenAI
Overview
OpenAI is a leading provider of large language models (LLMs) such as GPT-5, GPT-4.1, and GPT-4o. AI Gateway can be configured to use OpenAI models for various AI operations.
Configuration
To use OpenAI with, configure it in the Config Manager under the AI Gateway section:
ai:
providers:
openai:
apiKey: your-openai-api-key
baseURL: https://ai-gateway.example.com/openai # Optional, to point at a gateway
headers: # Optional, e.g. for authentication with gateway
- key: X-Custom-Header
value: custom-value
Then set the default language model (or configure it per-plugin):
ai:
models:
languageModel: openai|gpt-5 # or any supported model below
Supported Models
- gpt-5 (recommended)
- gpt-4.1
- gpt-4o
- gpt-4o-mini
- gpt-4o-audio-preview
- gpt-4-turbo
- gpt-4
- gpt-3.5-turbo
- o1
- o1-mini
- o1-preview
- o3-mini
- o3
- o4-mini
- chatgpt-4o-latest