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!spring-doc.cn

Refer to the Dependency Management section to add the Spring AI BOM to your build file.

Propertyspring-doc.cn

Descriptionspring-doc.cn

Defaultspring-doc.cn

spring.ai.azure.openai.image.enabledspring-doc.cn

Enable OpenAI image model.spring-doc.cn

truespring-doc.cn

spring.ai.azure.openai.image.options.nspring-doc.cn

The number of images to generate. Must be between 1 and 10. For dall-e-3, only n=1 is supported.spring-doc.cn

-spring-doc.cn

spring.ai.azure.openai.image.options.modelspring-doc.cn

The model to use for image generation.spring-doc.cn

AzureOpenAiImageOptions.DEFAULT_IMAGE_MODELspring-doc.cn

spring.ai.azure.openai.image.options.qualityspring-doc.cn

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-doc.cn

-spring-doc.cn

spring.ai.azure.openai.image.options.response_formatspring-doc.cn

The format in which the generated images are returned. Must be one of URL or b64_json.spring-doc.cn

-spring-doc.cn

spring.ai.openai.image.options.sizespring-doc.cn

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.spring-doc.cn

-spring-doc.cn

spring.ai.openai.image.options.size_widthspring-doc.cn

The width of the generated images. Must be one of 256, 512, or 1024 for dall-e-2.spring-doc.cn

-spring-doc.cn

spring.ai.openai.image.options.size_heightspring-doc.cn

The height of the generated images. Must be one of 256, 512, or 1024 for dall-e-2.spring-doc.cn

-spring-doc.cn

spring.ai.openai.image.options.stylespring-doc.cn

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.spring-doc.cn

-spring-doc.cn

spring.ai.openai.image.options.userspring-doc.cn

A unique identifier representing your end-user, which can help Azure OpenAI to monitor and detect abuse.spring-doc.cn

-spring-doc.cn

Propertyspring-doc.cn

Descriptionspring-doc.cn

Defaultspring-doc.cn

spring.ai.azure.openai.endpointspring-doc.cn

The URL to connect tospring-doc.cn

my-dalle3.openai.azure.com/spring-doc.cn

spring.ai.azure.openai.apiKeyspring-doc.cn

The API Keyspring-doc.cn

-spring-doc.cn

In addition to the model specific AzureOpenAiImageOptions you can use a portable ImageOptions instance, created with the ImageOptionsBuilder#builder().