Class ImageSynthesisParam.ImageSynthesisParamBuilder<C extends ImageSynthesisParam,B extends ImageSynthesisParam.ImageSynthesisParamBuilder<C,B>>
java.lang.Object
com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase.HalfDuplexParamBaseBuilder<C,B>
com.alibaba.dashscope.legacy_2x.base.HalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C,B>
com.alibaba.dashscope.legacy_2x.aigc.imagesynthesis.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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbaseImageUrl(String baseImageUrl) Enter the URL address of the target edited image.abstract Cbuild()extraInput(String extraInputKey, Object extraInputValue) extraInputs(Map<? extends String, ? extends Object> extraInputs) The specific functions to be achieved , see class ImageEditFunctionThe color used to fill the masked area before inpainting.maskImageUrl(String maskImageUrl) Provide the URL address of the image of the marked area by the user.negativePrompt(String negativePrompt) promptExtend(Boolean promptExtend) The mode for generating images based on the reference image.refStrength(Float refStrength) Controls the similarity between the output image and the reference image.protected abstract Bself()sketchImageUrl(String sketchImageUrl) toString()Methods inherited from class com.alibaba.dashscope.legacy_2x.base.HalfDuplexServiceParam.HalfDuplexServiceParamBuilder
model, resourcesMethods inherited from class com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase.HalfDuplexParamBaseBuilder
apiKey, clearHeaders, clearParameters, enableEncrypt, header, headers, parameter, parameters, securityCheck, workspace
-
Constructor Details
-
ImageSynthesisParamBuilder
public ImageSynthesisParamBuilder()
-
-
Method Details
-
n
- Returns:
this.
-
size
- Returns:
this.
-
steps
- Returns:
this.
-
scale
- Returns:
this.
-
seed
- Returns:
this.
-
style
- Returns:
this.
-
prompt
- Returns:
this.
-
negativePrompt
- Returns:
this.
-
refImage
- Returns:
this.
-
sketchImageUrl
- Returns:
this.
-
images
- Returns:
this.
-
function
The specific functions to be achieved , see class ImageEditFunction- Returns:
this.
-
baseImageUrl
Enter the URL address of the target edited image.- Returns:
this.
-
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
-
extraInputs
-
clearExtraInputs
-
promptExtend
- Returns:
this.
-
watermark
- Returns:
this.
-
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
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
The color used to fill the masked area before inpainting. Format: hex color code, e.g., "#FFFFFF" or "white", "black", etc.- Returns:
this.
-
self
- Specified by:
selfin classHalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C extends ImageSynthesisParam,B extends ImageSynthesisParam.ImageSynthesisParamBuilder<C, B>>
-
build
- Specified by:
buildin classHalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C extends ImageSynthesisParam,B extends ImageSynthesisParam.ImageSynthesisParamBuilder<C, B>>
-
toString
- Overrides:
toStringin classHalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C extends ImageSynthesisParam,B extends ImageSynthesisParam.ImageSynthesisParamBuilder<C, B>>
-