Class ImageSynthesisParam.ImageSynthesisParamBuilder<C extends ImageSynthesisParam,B extends ImageSynthesisParam.ImageSynthesisParamBuilder<C,B>>

Enclosing class:
ImageSynthesisParam

public abstract static class ImageSynthesisParam.ImageSynthesisParamBuilder<C extends ImageSynthesisParam,B extends ImageSynthesisParam.ImageSynthesisParamBuilder<C,B>> extends HalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C,B>
  • Constructor Details

    • ImageSynthesisParamBuilder

      public ImageSynthesisParamBuilder()
  • Method Details

    • n

      public B n(Integer n)
      Returns:
      this.
    • size

      public B size(String size)
      Returns:
      this.
    • steps

      public B steps(Integer steps)
      Returns:
      this.
    • scale

      public B scale(Integer scale)
      Returns:
      this.
    • seed

      public B seed(Integer seed)
      Returns:
      this.
    • style

      public B style(String style)
      Returns:
      this.
    • prompt

      public B prompt(@NonNull @NonNull String prompt)
      Returns:
      this.
    • negativePrompt

      public B negativePrompt(String negativePrompt)
      Returns:
      this.
    • refImage

      public B refImage(String refImage)
      Returns:
      this.
    • sketchImageUrl

      public B sketchImageUrl(String sketchImageUrl)
      Returns:
      this.
    • images

      public B images(List<String> images)
      Returns:
      this.
    • function

      public B function(String function)
      The specific functions to be achieved , see class ImageEditFunction
      Returns:
      this.
    • baseImageUrl

      public B baseImageUrl(String baseImageUrl)
      Enter the URL address of the target edited image.
      Returns:
      this.
    • maskImageUrl

      public B maskImageUrl(String maskImageUrl)
      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.
      Returns:
      this.
    • extraInput

      public B extraInput(String extraInputKey, Object extraInputValue)
    • extraInputs

      public B extraInputs(Map<? extends String,? extends Object> extraInputs)
    • clearExtraInputs

      public B clearExtraInputs()
    • promptExtend

      public B promptExtend(Boolean promptExtend)
      Returns:
      this.
    • watermark

      public B watermark(Boolean watermark)
      Returns:
      this.
    • refStrength

      public B refStrength(Float refStrength)
      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.
      Returns:
      this.
    • refMode

      public B refMode(String refMode)
      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.
      Returns:
      this.
    • maskColor

      public B maskColor(String maskColor)
      The color used to fill the masked area before inpainting. Format: hex color code, e.g., "#FFFFFF" or "white", "black", etc.
      Returns:
      this.
    • self

      protected abstract B self()
      Specified by:
      self in class HalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C extends ImageSynthesisParam,B extends ImageSynthesisParam.ImageSynthesisParamBuilder<C,B>>
    • build

      public abstract C build()
      Specified by:
      build in class HalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C extends ImageSynthesisParam,B extends ImageSynthesisParam.ImageSynthesisParamBuilder<C,B>>
    • toString

      public String toString()
      Overrides:
      toString in class HalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C extends ImageSynthesisParam,B extends ImageSynthesisParam.ImageSynthesisParamBuilder<C,B>>