Class StabilityAiImageClient

java.lang.Object
org.springframework.ai.stabilityai.StabilityAiImageClient
All Implemented Interfaces:
ImageClient, ModelClient<ImagePrompt,ImageResponse>

public class StabilityAiImageClient extends Object implements ImageClient
StabilityAiImageClient is a class that implements the ImageClient 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 StabilityAiImageClient 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 ImageClient
      Specified by:
      call in interface ModelClient<ImagePrompt,ImageResponse>
      Parameters:
      imagePrompt - the StabilityAiImagePrompt containing the prompt and image model options
      Returns:
      the ImageResponse generated by the StabilityAiImageClient