OpenAI
Configure OpenAI as an AI provider for chat, embedding, speech-to-text, and image generation capabilities.
OpenAI provides access to GPT, text-embedding, and image models, supporting Chat, Embedding, Speech-to-Text, and Image Generation capabilities. Image Generation is experimental. See Enabling image generation.
Installation
Install-Package Umbraco.AI.OpenAIOr via .NET CLI:
dotnet add package Umbraco.AI.OpenAIConnection Settings
Organization ID
No
Optional organization identifier for usage tracking
Endpoint
No
Custom endpoint URL (defaults to https://api.openai.com/v1)
Getting an API Key
Sign up at platform.openai.com
Navigate to API keys in the sidebar
Click Create new secret key
Copy the key (it won't be shown again)
Azure OpenAI
OpenAI models are also available through Azure OpenAI Service. To use Azure:
Set the Endpoint to your Azure OpenAI resource URL:
https://{resource-name}.openai.azure.com/Use your Azure API key instead of an OpenAI key
Model names may differ (deployment names vs model names)

Related
Image Generation API - Generate images with OpenAI
Last updated
Was this helpful?