Class AzureOpenAiImageModel

java.lang.Object
org.springframework.ai.azure.openai.AzureOpenAiImageModel
All Implemented Interfaces:
org.springframework.ai.image.ImageModel, org.springframework.ai.model.Model<org.springframework.ai.image.ImagePrompt,org.springframework.ai.image.ImageResponse>

public class AzureOpenAiImageModel extends Object implements org.springframework.ai.image.ImageModel
ImageModel implementation for Microsoft Azure AI backed by OpenAIClient.
Since:
1.0.0
Author:
Benoit Moussaud, Sebastien Deleuze
See Also:
  • ImageModel
  • OpenAIClient
  • Constructor Details

    • AzureOpenAiImageModel

      public AzureOpenAiImageModel(com.azure.ai.openai.OpenAIClient openAIClient)
    • AzureOpenAiImageModel

      public AzureOpenAiImageModel(com.azure.ai.openai.OpenAIClient microsoftOpenAiClient, AzureOpenAiImageOptions options)
  • Method Details

    • getDefaultOptions

      public AzureOpenAiImageOptions getDefaultOptions()
    • call

      public org.springframework.ai.image.ImageResponse call(org.springframework.ai.image.ImagePrompt imagePrompt)
      Specified by:
      call in interface org.springframework.ai.image.ImageModel
      Specified by:
      call in interface org.springframework.ai.model.Model<org.springframework.ai.image.ImagePrompt,org.springframework.ai.image.ImageResponse>