Skip to main content

OpenAI

OpenAI provides frontier models ranging from lightweight to high-capability.

Use a preset

To use an OpenAI LLM with an Agora managed key, specify one of the following presets in the preset field when starting an agent:

  • openai_gpt_4o_mini
  • openai_gpt_4_1_mini
  • openai_gpt_5_nano
  • openai_gpt_5_mini

When using a preset, url, api_key, and model are not required. You can still use the llm field to configure additional settings such as system_messages and greeting_message. To use a model not listed above, or to provide your own API key, see Sample configuration.

Sample configuration

The following examples show a starting llm parameter configuration you can use when you Start a conversational AI agent.


_16
"name": "unique_name",
_16
"preset": "openai_gpt_4o_mini",
_16
"properties": {
_16
// ...
_16
"llm": {
_16
"system_messages": [
_16
{
_16
"role": "system",
_16
"content": "You are a helpful chatbot."
_16
}
_16
],
_16
"max_history": 32,
_16
"greeting_message": "Hello, how can I assist you?",
_16
"failure_message": "Please hold on a second."
_16
}
_16
}

Key parameters

The following parameters are required when using your own API key (BYOK). They are not required when using a preset.

llm

For complete llm configuration options, see LLM parameters. For OpenAI-specific options and model capabilities, see the OpenAI API documentation.