This version is still in development and is not considered stable yet. For the latest snapshot version, please use Spring AI 1.0.0-SNAPSHOT! |
Refer to the Dependency Management section to add the Spring AI BOM to your build file. |
Property |
Description |
Default |
spring.ai.azure.openai.image.enabled |
Enable OpenAI image model. |
true |
spring.ai.azure.openai.image.options.n |
The number of images to generate. Must be between 1 and 10. For dall-e-3, only n=1 is supported. |
- |
spring.ai.azure.openai.image.options.model |
The model to use for image generation. |
AzureOpenAiImageOptions.DEFAULT_IMAGE_MODEL |
spring.ai.azure.openai.image.options.quality |
The quality of the image that will be generated. HD creates images with finer details and greater consistency across the image. This parameter is only supported for dall-e-3. |
- |
spring.ai.azure.openai.image.options.response_format |
The format in which the generated images are returned. Must be one of URL or b64_json. |
- |
|
The size of the generated images. Must be one of 256x256, 512x512, or 1024x1024 for dall-e-2. Must be one of 1024x1024, 1792x1024, or 1024x1792 for dall-e-3 models. |
- |
|
The width of the generated images. Must be one of 256, 512, or 1024 for dall-e-2. |
- |
|
The height of the generated images. Must be one of 256, 512, or 1024 for dall-e-2. |
- |
|
The style of the generated images. Must be one of vivid or natural. Vivid causes the model to lean towards generating hyper-real and dramatic images. Natural causes the model to produce more natural, less hyper-real looking images. This parameter is only supported for dall-e-3. |
- |
|
A unique identifier representing your end-user, which can help Azure OpenAI to monitor and detect abuse. |
- |
Property |
Description |
Default |
spring.ai.azure.openai.endpoint |
The URL to connect to |
|
spring.ai.azure.openai.apiKey |
The API Key |
- |
In addition to the model specific AzureOpenAiImageOptions you can use a portable ImageOptions instance, created with the ImageOptionsBuilder#builder(). |