Skip to main content

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, configure it in the Plugin settings page under the AI Gateway section:

FieldDescriptionExample
API KeyYour OpenAI API keyyour-openai-api-key
Base URLOptional, to point at a gatewayhttps://ai-gateway.example.com/openai
HeadersOptional, e.g. for authentication with gatewayKey: X-Custom-Header
Value: custom-value

Then set the default language model (or configure it per-plugin):

Language Model: openai|gpt-5

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