From 03e23c8187bdd5c813305bc73698fca458e2eccf Mon Sep 17 00:00:00 2001 From: Andreas Fuerer Date: Wed, 3 Sep 2025 14:24:04 +0200 Subject: [PATCH] feat: Azure OpenAI Image Generation support --- docs/getting-started/env-configuration.md | 7 +++++++ docs/tutorials/images.md | 8 +++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/getting-started/env-configuration.md b/docs/getting-started/env-configuration.md index b1486b38..a578fa34 100644 --- a/docs/getting-started/env-configuration.md +++ b/docs/getting-started/env-configuration.md @@ -2745,6 +2745,13 @@ Strictly return in JSON format: - Description: Sets the OpenAI-compatible base URL to use for DALL-E image generation. - Persistence: This environment variable is a `PersistentConfig` variable. +#### `IMAGES_OPENAI_API_VERSION` + +- Type: `str` +- Default: `${OPENAI_API_VERSION}` +- Description: Optional setting. If provided it sets the `api-version` query parameter when calling the image generation. If the Azure OpenAI service is used, this needs to be configured. +- Persistence: This environment variable is a `PersistentConfig` variable. + #### `IMAGES_OPENAI_API_KEY` - Type: `str` diff --git a/docs/tutorials/images.md b/docs/tutorials/images.md index 4bb2d693..ad8a87c9 100644 --- a/docs/tutorials/images.md +++ b/docs/tutorials/images.md @@ -157,7 +157,13 @@ Open WebUI also supports image generation through the **OpenAI APIs**. This opti ### Azure OpenAI -Using Azure OpenAI Dall-E directly is unsupported, but you can [set up a LiteLLM proxy](https://litellm.vercel.app/docs/image_generation) which is compatible with the `Open AI (Dall-E)` Image Generation Engine. +Image generation with a Azure OpenAI Dall-E or GPT-Image is supported with OpenWeb UI. Configure the Image Generation as follows: + +1. In Open WebUI, navigate to the **Admin Panel** > **Settings** > **Images** menu. +2. Set the `Image Generation Engine` field to `Open AI` (Azure OpenAI uses the same syntax as OpenAI). +3. Change the API endpoint URL to `https://.cognitiveservices.azure.com/openai/deployments//`. Set the instance and model id as you find it in the settings of the Azure AI Foundry. +4. Configure the API version to the value you find in the settings of the Azure AI Fountry. +5. Enter your Azure OpenAI API key. ## Image Router