Class ImageSynthesisParam


@Deprecated public class ImageSynthesisParam extends HalfDuplexServiceParam
Deprecated.
  • Field Details

    • extraInputs

      protected Map<String,Object> extraInputs
      Deprecated.
      The extra parameters.
  • Constructor Details

  • Method Details

    • getInput

      public com.google.gson.JsonObject getInput()
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      Get the request input data.
      Specified by:
      getInput in class HalfDuplexParamBase
      Returns:
      The input data object.
    • getParameters

      public Map<String,Object> getParameters()
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      The service parameters.
      Overrides:
      getParameters in class HalfDuplexServiceParam
      Returns:
      The parameters
    • getHttpBody

      public com.google.gson.JsonObject getHttpBody()
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      Get the batch request data. Http body include {"model": "model_name", "input": "input data", "parameters": "The request parameters"}
      Specified by:
      getHttpBody in class HalfDuplexParamBase
      Returns:
      The http request body
    • getBinaryData

      public ByteBuffer getBinaryData()
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      Get the binary data, only websocket, if no binary data, return null.
      Specified by:
      getBinaryData in class HalfDuplexParamBase
      Returns:
      The binary data
    • validate

      public void validate() throws InputRequiredException
      Deprecated.
      Description copied from class: HalfDuplexParamBase
      Validate the input and parameters.
      Specified by:
      validate in class HalfDuplexParamBase
      Throws:
      InputRequiredException - Missing input fields.
    • checkAndUpload

      public void checkAndUpload() throws NoApiKeyException, UploadFileException
      Deprecated.
      Throws:
      NoApiKeyException
      UploadFileException
    • builder

      public static ImageSynthesisParam.ImageSynthesisParamBuilder<?,?> builder()
      Deprecated.
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class HalfDuplexServiceParam
    • canEqual

      protected boolean canEqual(Object other)
      Deprecated.
      Overrides:
      canEqual in class HalfDuplexServiceParam
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class HalfDuplexServiceParam
    • getN

      public Integer getN()
      Deprecated.
    • getSize

      public String getSize()
      Deprecated.
    • getSteps

      public Integer getSteps()
      Deprecated.
    • getScale

      public Integer getScale()
      Deprecated.
    • getSeed

      public Integer getSeed()
      Deprecated.
    • getStyle

      public String getStyle()
      Deprecated.
    • getPrompt

      @NonNull public @NonNull String getPrompt()
      Deprecated.
    • getNegativePrompt

      public String getNegativePrompt()
      Deprecated.
    • getRefImage

      public String getRefImage()
      Deprecated.
    • getSketchImageUrl

      public String getSketchImageUrl()
      Deprecated.
    • getImages

      public List<String> getImages()
      Deprecated.
    • getFunction

      public String getFunction()
      Deprecated.
      The specific functions to be achieved , see class ImageEditFunction
    • getBaseImageUrl

      public String getBaseImageUrl()
      Deprecated.
      Enter the URL address of the target edited image.
    • getMaskImageUrl

      public String getMaskImageUrl()
      Deprecated.
      Provide the URL address of the image of the marked area by the user. It should be consistent with the image resolution of the base_image_url.
    • getExtraInputs

      public Map<String,Object> getExtraInputs()
      Deprecated.
      The extra parameters.
    • getPromptExtend

      public Boolean getPromptExtend()
      Deprecated.
    • getWatermark

      public Boolean getWatermark()
      Deprecated.
    • getRefStrength

      public Float getRefStrength()
      Deprecated.
      Controls the similarity between the output image and the reference image. Value range: [0.0, 1.0]. Higher values mean the generated image is more similar to the reference image.
    • getRefMode

      public String getRefMode()
      Deprecated.
      The mode for generating images based on the reference image. Supported modes: - "repaint" (default): Generate image based on the content of the reference image. - "refonly": Generate image based on the style of the reference image.
    • getMaskColor

      public String getMaskColor()
      Deprecated.
      The color used to fill the masked area before inpainting. Format: hex color code, e.g., "#FFFFFF" or "white", "black", etc.
    • setN

      public void setN(Integer n)
      Deprecated.
    • setSize

      public void setSize(String size)
      Deprecated.
    • setSteps

      public void setSteps(Integer steps)
      Deprecated.
    • setScale

      public void setScale(Integer scale)
      Deprecated.
    • setSeed

      public void setSeed(Integer seed)
      Deprecated.
    • setStyle

      public void setStyle(String style)
      Deprecated.
    • setPrompt

      public void setPrompt(@NonNull @NonNull String prompt)
      Deprecated.
    • setNegativePrompt

      public void setNegativePrompt(String negativePrompt)
      Deprecated.
    • setRefImage

      public void setRefImage(String refImage)
      Deprecated.
    • setSketchImageUrl

      public void setSketchImageUrl(String sketchImageUrl)
      Deprecated.
    • setImages

      public void setImages(List<String> images)
      Deprecated.
    • setFunction

      public void setFunction(String function)
      Deprecated.
      The specific functions to be achieved , see class ImageEditFunction
    • setBaseImageUrl

      public void setBaseImageUrl(String baseImageUrl)
      Deprecated.
      Enter the URL address of the target edited image.
    • setMaskImageUrl

      public void setMaskImageUrl(String maskImageUrl)
      Deprecated.
      Provide the URL address of the image of the marked area by the user. It should be consistent with the image resolution of the base_image_url.
    • setExtraInputs

      public void setExtraInputs(Map<String,Object> extraInputs)
      Deprecated.
      The extra parameters.
    • setPromptExtend

      public void setPromptExtend(Boolean promptExtend)
      Deprecated.
    • setWatermark

      public void setWatermark(Boolean watermark)
      Deprecated.
    • setRefStrength

      public void setRefStrength(Float refStrength)
      Deprecated.
      Controls the similarity between the output image and the reference image. Value range: [0.0, 1.0]. Higher values mean the generated image is more similar to the reference image.
    • setRefMode

      public void setRefMode(String refMode)
      Deprecated.
      The mode for generating images based on the reference image. Supported modes: - "repaint" (default): Generate image based on the content of the reference image. - "refonly": Generate image based on the style of the reference image.
    • setMaskColor

      public void setMaskColor(String maskColor)
      Deprecated.
      The color used to fill the masked area before inpainting. Format: hex color code, e.g., "#FFFFFF" or "white", "black", etc.
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class HalfDuplexParamBase