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_miniopenai_gpt_4_1_miniopenai_gpt_5_nanoopenai_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.
- Use a preset model
- Use your own API key (BYOK)
Key parameters
The following parameters are required when using your own API key (BYOK). They are not required when using a preset.
llm
- api_key string
Create or manage your API key from OpenAI organization settings.
- url string
Use the completions endpoint.
- params object
Show propertiesHide properties
- model string
Refer to OpenAI models for available models.
For complete llm configuration options, see LLM parameters. For OpenAI-specific options and model capabilities, see the OpenAI API documentation.