Class StabilityAiImageModel

java.lang.Object
org.springframework.ai.stabilityai.StabilityAiImageModel
All Implemented Interfaces:
ImageModel, Model<ImagePrompt,ImageResponse>

public class StabilityAiImageModel extends Object implements ImageModel
StabilityAiImageModel is a class that implements the ImageModel interface. It provides a client for calling the StabilityAI image generation API.
  • Constructor Details

  • Method Details

    • getOptions

      public StabilityAiImageOptions getOptions()
    • call

      public ImageResponse call(ImagePrompt imagePrompt)
      Calls the StabilityAiImageModel with the given StabilityAiImagePrompt and returns the ImageResponse. This overloaded call method lets you pass the full set of Prompt instructions that StabilityAI supports.
      Specified by:
      call in interface ImageModel
      Specified by:
      call in interface Model<ImagePrompt,ImageResponse>
      Parameters:
      imagePrompt - the StabilityAiImagePrompt containing the prompt and image model options
      Returns:
      the ImageResponse generated by the StabilityAiImageModel