Class ImageGenerationParam
java.lang.Object
com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase
com.alibaba.dashscope.legacy_2x.base.HalfDuplexServiceParam
com.alibaba.dashscope.legacy_2x.aigc.imagegeneration.ImageGenerationParam
Deprecated.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classImageGenerationParam.ImageGenerationParamBuilder<C extends ImageGenerationParam,B extends ImageGenerationParam.ImageGenerationParamBuilder<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
Fields inherited from class com.alibaba.dashscope.legacy_2x.base.HalfDuplexParamBase
headers, parameters -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageGenerationParam.ImageGenerationParamBuilder<?,?> builder()Deprecated.protected booleanDeprecated.booleanDeprecated.Deprecated.The bounding boxes for the images.Deprecated.Get the binary data, only websocket, if no binary data, return null.Deprecated.Color palette configuration for controlling color distribution in generated images.Deprecated.Deprecated.com.google.gson.JsonObjectDeprecated.Get the batch request data.Deprecated.Used to control the streaming output mode.com.google.gson.JsonObjectgetInput()Deprecated.Get the request input data.Deprecated.Deprecated.Deprecated.Output format of the model including "text" and "audio".getN()Deprecated.number of imagesDeprecated.negative promptDeprecated.The service parameters.Deprecated.prompt extendDeprecated.response formatgetSeed()Deprecated.getSize()Deprecated.picture sizeDeprecated.Deprecated.Thinking mode for image generation.Deprecated.watermarkinthashCode()Deprecated.voidsetBboxList(List<List<List<Integer>>> bboxList) Deprecated.The bounding boxes for the images.voidsetColorPalette(List<ColorPalette> colorPalette) Deprecated.Color palette configuration for controlling color distribution in generated images.voidsetEnableInterleave(Boolean enableInterleave) Deprecated.voidsetEnableSequential(Boolean enableSequential) Deprecated.voidsetIncrementalOutput(Boolean incrementalOutput) Deprecated.Used to control the streaming output mode.voidsetMaxImages(Integer maxImages) Deprecated.voidsetMessages(List<ImageGenerationMessage> messages) Deprecated.voidsetModalities(List<String> modalities) Deprecated.Output format of the model including "text" and "audio".voidDeprecated.number of imagesvoidsetNegativePrompt(String negativePrompt) Deprecated.negative promptvoidsetPromptExtend(Boolean promptExtend) Deprecated.prompt extendvoidsetResponseFormat(ResponseFormat responseFormat) Deprecated.response formatvoidDeprecated.voidDeprecated.picture sizevoidDeprecated.voidsetThinkingMode(String thinkingMode) Deprecated.Thinking mode for image generation.voidsetWatermark(Boolean watermark) Deprecated.watermarktoString()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
-
Constructor Details
-
ImageGenerationParam
Deprecated.
-
-
Method Details
-
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
-
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
-
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.
-
builder
Deprecated. -
equals
Deprecated.- Overrides:
equalsin classHalfDuplexServiceParam
-
canEqual
Deprecated.- Overrides:
canEqualin classHalfDuplexServiceParam
-
hashCode
public int hashCode()Deprecated.- Overrides:
hashCodein classHalfDuplexServiceParam
-
getMessages
Deprecated. -
getSeed
Deprecated. -
getIncrementalOutput
Deprecated.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
-
getModalities
Deprecated.Output format of the model including "text" and "audio". Default value: ["text"] -
getResponseFormat
Deprecated.response format -
getNegativePrompt
Deprecated.negative prompt -
getPromptExtend
Deprecated.prompt extend -
getWatermark
Deprecated.watermark -
getSize
Deprecated.picture size -
getN
Deprecated.number of images -
getEnableInterleave
Deprecated. -
getStream
Deprecated. -
getMaxImages
Deprecated. -
getEnableSequential
Deprecated. -
getBboxList
Deprecated.The bounding boxes for the images. The structure is [image_index][box_index][x1, y1, x2, y2]. -
getThinkingMode
Deprecated.Thinking mode for image generation. Controls the level of reasoning and planning in the generation process. -
getColorPalette
Deprecated.Color palette configuration for controlling color distribution in generated images. -
setMessages
Deprecated. -
setSeed
Deprecated. -
setIncrementalOutput
Deprecated.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
-
setModalities
Deprecated.Output format of the model including "text" and "audio". Default value: ["text"] -
setResponseFormat
Deprecated.response format -
setNegativePrompt
Deprecated.negative prompt -
setPromptExtend
Deprecated.prompt extend -
setWatermark
Deprecated.watermark -
setSize
Deprecated.picture size -
setN
Deprecated.number of images -
setEnableInterleave
Deprecated. -
setStream
Deprecated. -
setMaxImages
Deprecated. -
setEnableSequential
Deprecated. -
setBboxList
Deprecated.The bounding boxes for the images. The structure is [image_index][box_index][x1, y1, x2, y2]. -
setThinkingMode
Deprecated.Thinking mode for image generation. Controls the level of reasoning and planning in the generation process. -
setColorPalette
Deprecated.Color palette configuration for controlling color distribution in generated images. -
toString
Deprecated.- Overrides:
toStringin classHalfDuplexParamBase
-