Class ImageSynthesisParam
java.lang.Object
com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase
com.alibaba.dashscope.legacy_2x.base.HalfDuplexServiceParam
com.alibaba.dashscope.legacy_2x.aigc.imagesynthesis.ImageSynthesisParam
Deprecated.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classImageSynthesisParam.ImageSynthesisParamBuilder<C extends ImageSynthesisParam,B extends ImageSynthesisParam.ImageSynthesisParamBuilder<C, B>> Deprecated.Nested classes/interfaces inherited from class com.alibaba.dashscope.legacy_2x.base.HalfDuplexServiceParam
HalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C extends HalfDuplexServiceParam,B extends HalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C, B>> Nested classes/interfaces inherited from class com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase
HalfDuplexParamBase.HalfDuplexParamBaseBuilder<C extends HalfDuplexParamBase,B extends HalfDuplexParamBase.HalfDuplexParamBaseBuilder<C, B>> -
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.The extra parameters.Fields inherited from class com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase
headers, parameters -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageSynthesisParam.ImageSynthesisParamBuilder<?,?> builder()Deprecated.protected booleanDeprecated.voidDeprecated.booleanDeprecated.Deprecated.Enter the URL address of the target edited image.Deprecated.Get the binary data, only websocket, if no binary data, return null.Deprecated.The extra parameters.Deprecated.The specific functions to be achieved , see class ImageEditFunctioncom.google.gson.JsonObjectDeprecated.Get the batch request data.Deprecated.com.google.gson.JsonObjectgetInput()Deprecated.Get the request input data.Deprecated.The color used to fill the masked area before inpainting.Deprecated.Provide the URL address of the image of the marked area by the user.getN()Deprecated.Deprecated.Deprecated.The service parameters.@NonNull StringDeprecated.Deprecated.Deprecated.Deprecated.The mode for generating images based on the reference image.Deprecated.Controls the similarity between the output image and the reference image.getScale()Deprecated.getSeed()Deprecated.getSize()Deprecated.Deprecated.getSteps()Deprecated.getStyle()Deprecated.Deprecated.inthashCode()Deprecated.voidsetBaseImageUrl(String baseImageUrl) Deprecated.Enter the URL address of the target edited image.voidsetExtraInputs(Map<String, Object> extraInputs) Deprecated.The extra parameters.voidsetFunction(String function) Deprecated.The specific functions to be achieved , see class ImageEditFunctionvoidDeprecated.voidsetMaskColor(String maskColor) Deprecated.The color used to fill the masked area before inpainting.voidsetMaskImageUrl(String maskImageUrl) Deprecated.Provide the URL address of the image of the marked area by the user.voidDeprecated.voidsetNegativePrompt(String negativePrompt) Deprecated.voidDeprecated.voidsetPromptExtend(Boolean promptExtend) Deprecated.voidsetRefImage(String refImage) Deprecated.voidsetRefMode(String refMode) Deprecated.The mode for generating images based on the reference image.voidsetRefStrength(Float refStrength) Deprecated.Controls the similarity between the output image and the reference image.voidDeprecated.voidDeprecated.voidDeprecated.voidsetSketchImageUrl(String sketchImageUrl) Deprecated.voidDeprecated.voidDeprecated.voidsetWatermark(Boolean watermark) Deprecated.toString()Deprecated.voidvalidate()Deprecated.Validate the input and parameters.Methods inherited from class com.alibaba.dashscope.legacy_2x.base.HalfDuplexServiceParam
getHeaders, getModel, getResources, putHeaderMethods inherited from class com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase
getApiKey, getEnableEncrypt, getWorkspace, isSecurityCheck, setApiKey, setEnableEncrypt, setHeaders, setParameters, setSecurityCheck, setWorkspace, shouldSerializeExplicitNulls
-
Field Details
-
extraInputs
Deprecated.The extra parameters.
-
-
Constructor Details
-
ImageSynthesisParam
Deprecated.
-
-
Method Details
-
getInput
public com.google.gson.JsonObject getInput()Deprecated.Description copied from class:HalfDuplexParamBaseGet the request input data.- Specified by:
getInputin classHalfDuplexParamBase- Returns:
- The input data object.
-
getParameters
Deprecated.Description copied from class:HalfDuplexParamBaseThe service parameters.- Overrides:
getParametersin classHalfDuplexServiceParam- Returns:
- The parameters
-
getHttpBody
public com.google.gson.JsonObject getHttpBody()Deprecated.Description copied from class:HalfDuplexParamBaseGet the batch request data. Http body include {"model": "model_name", "input": "input data", "parameters": "The request parameters"}- Specified by:
getHttpBodyin classHalfDuplexParamBase- Returns:
- The http request body
-
getBinaryData
Deprecated.Description copied from class:HalfDuplexParamBaseGet the binary data, only websocket, if no binary data, return null.- Specified by:
getBinaryDatain classHalfDuplexParamBase- Returns:
- The binary data
-
validate
Deprecated.Description copied from class:HalfDuplexParamBaseValidate the input and parameters.- Specified by:
validatein classHalfDuplexParamBase- Throws:
InputRequiredException- Missing input fields.
-
checkAndUpload
Deprecated.- Throws:
NoApiKeyExceptionUploadFileException
-
builder
Deprecated. -
equals
Deprecated.- Overrides:
equalsin classHalfDuplexServiceParam
-
canEqual
Deprecated.- Overrides:
canEqualin classHalfDuplexServiceParam
-
hashCode
public int hashCode()Deprecated.- Overrides:
hashCodein classHalfDuplexServiceParam
-
getN
Deprecated. -
getSize
Deprecated. -
getSteps
Deprecated. -
getScale
Deprecated. -
getSeed
Deprecated. -
getStyle
Deprecated. -
getPrompt
Deprecated. -
getNegativePrompt
Deprecated. -
getRefImage
Deprecated. -
getSketchImageUrl
Deprecated. -
getImages
Deprecated. -
getFunction
Deprecated.The specific functions to be achieved , see class ImageEditFunction -
getBaseImageUrl
Deprecated.Enter the URL address of the target edited image. -
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
Deprecated.The extra parameters. -
getPromptExtend
Deprecated. -
getWatermark
Deprecated. -
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
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
Deprecated.The color used to fill the masked area before inpainting. Format: hex color code, e.g., "#FFFFFF" or "white", "black", etc. -
setN
Deprecated. -
setSize
Deprecated. -
setSteps
Deprecated. -
setScale
Deprecated. -
setSeed
Deprecated. -
setStyle
Deprecated. -
setPrompt
Deprecated. -
setNegativePrompt
Deprecated. -
setRefImage
Deprecated. -
setSketchImageUrl
Deprecated. -
setImages
Deprecated. -
setFunction
Deprecated.The specific functions to be achieved , see class ImageEditFunction -
setBaseImageUrl
Deprecated.Enter the URL address of the target edited image. -
setMaskImageUrl
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
Deprecated.The extra parameters. -
setPromptExtend
Deprecated. -
setWatermark
Deprecated. -
setRefStrength
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
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
Deprecated.The color used to fill the masked area before inpainting. Format: hex color code, e.g., "#FFFFFF" or "white", "black", etc. -
toString
Deprecated.- Overrides:
toStringin classHalfDuplexParamBase
-