Class ImageGenerateParams
java.lang.Object
com.alibaba.dashscope.types.images.ImageGenerateParams
Parameters for
images().generate / images().jobs().create (design §3). Two wire
protocols hide behind this one params object, picked by model name prefix (MULTIMODAL_MODEL_PREFIXES): legacy text2image takes prompt input and
negative_prompt in input; the multimodal-generation protocol takes a messages input and
negative_prompt in parameters. size accepts both 1024x1024 and the wire
form 1024*1024.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String[]Models that only answer on the multimodal-generation protocol (prefix match, so-preview-style variants route the same way). -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageGenerateParams.Builderbuilder()Extra input fields merged intoinputverbatim.Reference images (multimodal-protocol models); local paths andfile:///oss://values are uploaded/resolved before the call.getModel()getN()Passthrough for parameters this signature does not name; named fields win on conflict.getSeed()getSize()getStyle()static booleanusesMultimodalProtocol(String model) true whenmodelroutes to the multimodal-generation protocol.
-
Field Details
-
MULTIMODAL_MODEL_PREFIXES
Models that only answer on the multimodal-generation protocol (prefix match, so-preview-style variants route the same way).
-
-
Method Details
-
builder
-
usesMultimodalProtocol
true whenmodelroutes to the multimodal-generation protocol. -
getModel
-
getPrompt
-
getNegativePrompt
-
getN
-
getSize
-
getImageUrls
Reference images (multimodal-protocol models); local paths andfile:///oss://values are uploaded/resolved before the call. -
getExtraInput
Extra input fields merged intoinputverbatim. -
getFunction
-
getSeed
-
getStyle
-
getPromptExtend
-
getWatermark
-
getParameters
Passthrough for parameters this signature does not name; named fields win on conflict.
-