Class VideoSynthesisParam.VideoSynthesisParamBuilder<C extends VideoSynthesisParam,B extends VideoSynthesisParam.VideoSynthesisParamBuilder<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.videosynthesis.VideoSynthesisParam.VideoSynthesisParamBuilder<C,B>
- Enclosing class:
- VideoSynthesisParam
public abstract static class VideoSynthesisParam.VideoSynthesisParamBuilder<C extends VideoSynthesisParam,B extends VideoSynthesisParam.VideoSynthesisParamBuilder<C,B>>
extends HalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C,B>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaudioSetting(String audioSetting) The input audio url.abstract Cbuild()Duration of video generation.enableOverlays(Boolean enableOverlays) The enable_overlays parameter.enableThinking(Boolean enableThinking) extendPrompt(Boolean extendPrompt) Deprecated.extraInput(String extraInputKey, Object extraInputValue) extraInputs(Map<? extends String, ? extends Object> extraInputs) firstFrameUrl(String firstFrameUrl) The URL of the first frame image for generating the video.The input image url, Generate the URL of the image referenced by the videoinputChecks(Map<String, String> inputChecks) lastFrameUrl(String lastFrameUrl) The URL of the last frame image for generating the video.media(List<VideoSynthesisParam.Media> media) list of media file urls uploaded by the usernegative_prompt(String negative_prompt) Deprecated.negativePrompt(String negativePrompt) The negative prompt is the opposite of the prompt meaning.promptExtend(Boolean promptExtend) referenceUrl(String referenceUrl) list of character reference file url uploaded by the userreferenceUrls(List<String> referenceUrls) list of character reference file urls uploaded by the userreferenceVideoDescription(List<String> referenceVideoDescription) For the description information of the picture and sound of the reference video, corresponding to ref video, it needs to be in the order of the url.referenceVideoUrls(List<String> referenceVideoUrls) list of character reference video file urls uploaded by the userresolution(String resolution) The resolution of the generated videoprotected abstract Bself()LoRa input, such as gufeng, katong, etc.toString()Methods 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
-
VideoSynthesisParamBuilder
public VideoSynthesisParamBuilder()
-
-
Method Details
-
inputChecks
- Returns:
this.
-
size
- Returns:
this.
-
steps
- Returns:
this.
-
seed
- Returns:
this.
-
prompt
- Returns:
this.
-
negative_prompt
Deprecated.The negative prompt is the opposite of the prompt meaning. use negativePrompt- Returns:
this.
-
negativePrompt
The negative prompt is the opposite of the prompt meaning.- Returns:
this.
-
template
LoRa input, such as gufeng, katong, etc.- Returns:
this.
-
extendPrompt
Deprecated.use promptExtend in parameters- Returns:
this.
-
imgUrl
The input image url, Generate the URL of the image referenced by the video- Returns:
this.
-
audioUrl
The input audio url.- Returns:
this.
-
referenceVideoUrls
list of character reference video file urls uploaded by the user- Returns:
this.
-
referenceUrls
list of character reference file urls uploaded by the user- Returns:
this.
-
referenceUrl
list of character reference file url uploaded by the user- Returns:
this.
-
media
list of media file urls uploaded by the user- Returns:
this.
-
referenceVideoDescription
For the description information of the picture and sound of the reference video, corresponding to ref video, it needs to be in the order of the url. If the quantity is different, an error will be reported- Returns:
this.
-
extraInput
-
extraInputs
-
clearExtraInputs
-
duration
Duration of video generation. The default value is 5, in seconds- Returns:
this.
-
firstFrameUrl
The URL of the first frame image for generating the video.- Returns:
this.
-
lastFrameUrl
The URL of the last frame image for generating the video.- Returns:
this.
-
headFrame
- Returns:
this.
-
tailFrame
- Returns:
this.
-
withAudio
- Returns:
this.
-
resolution
The resolution of the generated video- Returns:
this.
-
promptExtend
- Returns:
this.
-
watermark
- Returns:
this.
-
audio
- Returns:
this.
-
shotType
- Returns:
this.
-
enableOverlays
The enable_overlays parameter.- Returns:
this.
-
ratio
- Returns:
this.
-
audioSetting
- Returns:
this.
-
enableThinking
- Returns:
this.
-
self
- Specified by:
selfin classHalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C extends VideoSynthesisParam,B extends VideoSynthesisParam.VideoSynthesisParamBuilder<C, B>>
-
build
- Specified by:
buildin classHalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C extends VideoSynthesisParam,B extends VideoSynthesisParam.VideoSynthesisParamBuilder<C, B>>
-
toString
- Overrides:
toStringin classHalfDuplexServiceParam.HalfDuplexServiceParamBuilder<C extends VideoSynthesisParam,B extends VideoSynthesisParam.VideoSynthesisParamBuilder<C, B>>
-