Class ImageGenerationParam.ImageGenerationParamBuilder<C extends ImageGenerationParam,B extends ImageGenerationParam.ImageGenerationParamBuilder<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.imagegeneration.ImageGenerationParam.ImageGenerationParamBuilder<C,B>
- Enclosing class:
- ImageGenerationParam
public abstract static class ImageGenerationParam.ImageGenerationParamBuilder<C extends ImageGenerationParam,B extends ImageGenerationParam.ImageGenerationParamBuilder<C,B>>
extends HalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C,B>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe bounding boxes for the images.abstract Cbuild()colorPalette(List<ColorPalette> colorPalette) Color palette configuration for controlling color distribution in generated images.enableInterleave(Boolean enableInterleave) enableSequential(Boolean enableSequential) incrementalOutput(Boolean incrementalOutput) Used to control the streaming output mode.message(ImageGenerationMessage message) messages(Collection<? extends ImageGenerationMessage> messages) modalities(List<String> modalities) Output format of the model including "text" and "audio".number of imagesnegativePrompt(String negativePrompt) negative promptpromptExtend(Boolean promptExtend) prompt extendresponseFormat(ResponseFormat responseFormat) response formatprotected abstract Bself()picture sizethinkingMode(String thinkingMode) Thinking mode for image generation.toString()watermarkMethods 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
-
ImageGenerationParamBuilder
public ImageGenerationParamBuilder()
-
-
Method Details
-
message
-
messages
-
clearMessages
-
seed
- Returns:
this.
-
incrementalOutput
Used to control the streaming output mode. If true, the subsequent output will include the previously input content by default. Otherwise, the subsequent output will not include the previously output content. Default: false eg(false):I I like I like apple when true: I like apple
- Returns:
this.
-
modalities
Output format of the model including "text" and "audio". Default value: ["text"]- Returns:
this.
-
responseFormat
response format- Returns:
this.
-
negativePrompt
negative prompt- Returns:
this.
-
promptExtend
prompt extend- Returns:
this.
-
watermark
watermark- Returns:
this.
-
size
picture size- Returns:
this.
-
n
number of images- Returns:
this.
-
enableInterleave
- Returns:
this.
-
stream
- Returns:
this.
-
maxImages
- Returns:
this.
-
enableSequential
- Returns:
this.
-
bboxList
The bounding boxes for the images. The structure is [image_index][box_index][x1, y1, x2, y2].- Returns:
this.
-
thinkingMode
Thinking mode for image generation. Controls the level of reasoning and planning in the generation process.- Returns:
this.
-
colorPalette
Color palette configuration for controlling color distribution in generated images.- Returns:
this.
-
self
- Specified by:
selfin classHalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C extends ImageGenerationParam,B extends ImageGenerationParam.ImageGenerationParamBuilder<C, B>>
-
build
- Specified by:
buildin classHalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C extends ImageGenerationParam,B extends ImageGenerationParam.ImageGenerationParamBuilder<C, B>>
-
toString
- Overrides:
toStringin classHalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C extends ImageGenerationParam,B extends ImageGenerationParam.ImageGenerationParamBuilder<C, B>>
-