Class VideoGenerateParams
java.lang.Object
com.alibaba.dashscope.types.videos.VideoGenerateParams
Parameters for
videos().generate / videos().jobs().create (design §3). One
service, two input protocols, picked by model name prefix (MEDIA_MODEL_PREFIXES): legacy
models take img_url first-frame input (the public name is imageUrl;
prompt-only works too); media-protocol models take a media list of typed assets (
first_frame / last_frame / driving_audio / first_clip), with
imageUrl accepted as shorthand for a lone first_frame asset.
Media items are wire-shaped maps ({type, url} plus any per-model extras); local paths
and file:///oss:// values anywhere in the inputs are uploaded/resolved before the
call.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String[]Models that only answer on the media-based input protocol (prefix match, so dated variants route the same way). -
Method Summary
Modifier and TypeMethodDescriptionstatic VideoGenerateParams.Builderbuilder()getMedia()getModel()getRatio()getSeed()getSize()static booleanusesMediaProtocol(String model) true whenmodelroutes to the media-based input protocol.
-
Field Details
-
MEDIA_MODEL_PREFIXES
Models that only answer on the media-based input protocol (prefix match, so dated variants route the same way).
-
-
Method Details
-
builder
-
usesMediaProtocol
true whenmodelroutes to the media-based input protocol. -
getModel
-
getPrompt
-
getImageUrl
-
getMedia
-
getExtraInput
-
getFunction
-
getSeed
-
getSize
-
getDuration
-
getResolution
-
getRatio
-
getPromptExtend
-
getWatermark
-
getParameters
-