Class GoogleGenAiImageModel

java.lang.Object
org.springframework.ai.google.genai.image.GoogleGenAiImageModel
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 GoogleGenAiImageModel extends Object implements org.springframework.ai.image.ImageModel
A class representing an Image Model using the new Google Gen AI SDK.
Since:
2.0.1
Author:
Olivier Le Quellec
  • Constructor Details

  • Method Details

    • call

      public org.springframework.ai.image.ImageResponse call(org.springframework.ai.image.ImagePrompt prompt)
      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>
    • setObservationConvention

      public void setObservationConvention(@Nullable org.springframework.ai.image.observation.ImageModelObservationConvention observationConvention)