Class StabilityAiImageProperties

java.lang.Object
org.springframework.ai.model.stabilityai.autoconfigure.StabilityAiImageProperties

@ConfigurationProperties("spring.ai.stabilityai.image") public class StabilityAiImageProperties extends Object
Configuration properties for Stability AI image model.
Since:
0.8.0
Author:
Mark Pollack, Christian Tzolov, Sebastien Deleuze
  • Field Details

  • Constructor Details

    • StabilityAiImageProperties

      public StabilityAiImageProperties()
  • Method Details

    • getN

      public @Nullable Integer getN()
    • setN

      public void setN(@Nullable Integer n)
    • getModel

      public @Nullable String getModel()
    • setModel

      public void setModel(@Nullable String model)
    • getWidth

      public @Nullable Integer getWidth()
    • setWidth

      public void setWidth(@Nullable Integer width)
    • getHeight

      public @Nullable Integer getHeight()
    • setHeight

      public void setHeight(@Nullable Integer height)
    • getResponseFormat

      public @Nullable String getResponseFormat()
    • setResponseFormat

      public void setResponseFormat(@Nullable String responseFormat)
    • getCfgScale

      public @Nullable Float getCfgScale()
    • setCfgScale

      public void setCfgScale(@Nullable Float cfgScale)
    • getClipGuidancePreset

      public @Nullable String getClipGuidancePreset()
    • setClipGuidancePreset

      public void setClipGuidancePreset(@Nullable String clipGuidancePreset)
    • getSampler

      public @Nullable String getSampler()
    • setSampler

      public void setSampler(@Nullable String sampler)
    • getSeed

      public @Nullable Long getSeed()
    • setSeed

      public void setSeed(@Nullable Long seed)
    • getSteps

      public @Nullable Integer getSteps()
    • setSteps

      public void setSteps(@Nullable Integer steps)
    • getStylePreset

      public @Nullable String getStylePreset()
    • setStylePreset

      public void setStylePreset(@Nullable String stylePreset)
    • toOptions

      public StabilityAiImageOptions toOptions()
    • getOptions

      @DeprecatedConfigurationProperty(replacement="spring.ai.stabilityai.image") @Deprecated(since="2.0.0", forRemoval=true) public StabilityAiImageProperties.Options getOptions()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setOptions

      public void setOptions(StabilityAiImageProperties.Options options)
    • getApiKey

      public @Nullable String getApiKey()
    • setApiKey

      public void setApiKey(@Nullable String apiKey)
    • getBaseUrl

      public @Nullable String getBaseUrl()
    • setBaseUrl

      public void setBaseUrl(@Nullable String baseUrl)