Class ZhiPuAiImageOptions

java.lang.Object
org.springframework.ai.zhipuai.ZhiPuAiImageOptions
All Implemented Interfaces:
org.springframework.ai.image.ImageOptions, org.springframework.ai.model.ModelOptions

public class ZhiPuAiImageOptions extends Object implements org.springframework.ai.image.ImageOptions
ZhiPuAiImageOptions represents the options for image generation using ZhiPuAI image model.

It implements the ImageOptions interface, which is portable across different image generation models.

Default values:

  • model: ZhiPuAiImageApi.DEFAULT_IMAGE_MODEL
  • user: null
Since:
1.0.0 M1
Author:
Geng Rong, Ilayaperumal Gopinathan
  • Constructor Details

    • ZhiPuAiImageOptions

      public ZhiPuAiImageOptions()
  • Method Details

    • builder

      public static ZhiPuAiImageOptions.Builder builder()
    • getN

      public Integer getN()
      Specified by:
      getN in interface org.springframework.ai.image.ImageOptions
    • getModel

      public String getModel()
      Specified by:
      getModel in interface org.springframework.ai.image.ImageOptions
    • setModel

      public void setModel(String model)
    • getWidth

      public Integer getWidth()
      Specified by:
      getWidth in interface org.springframework.ai.image.ImageOptions
    • getHeight

      public Integer getHeight()
      Specified by:
      getHeight in interface org.springframework.ai.image.ImageOptions
    • getResponseFormat

      public String getResponseFormat()
      Specified by:
      getResponseFormat in interface org.springframework.ai.image.ImageOptions
    • getStyle

      public String getStyle()
      Specified by:
      getStyle in interface org.springframework.ai.image.ImageOptions
    • getUser

      public String getUser()
    • setUser

      public void setUser(String user)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object