Package ai.runapi.wan.types
Class ImageToVideoParams.Builder
java.lang.Object
ai.runapi.wan.types.ImageToVideoParams.Builder
- Enclosing class:
- ImageToVideoParams
Builder for
ImageToVideoParams.-
Method Summary
Modifier and TypeMethodDescriptionacceleration(String value) Sets the acceleration mode.aspectRatio(AspectRatio value) Sets the output aspect ratio.aspectRatio(String value) Sets the output aspect ratio.audio(boolean value) Sets the audio generation toggle.backgroundAudioUrl(String value) Sets the background audio URL.build()Builds immutable image-to-video parameters.callbackUrl(String value) Sets the webhook URL for task completion notifications.drivingAudioUrl(String value) Sets the driving audio URL.durationSeconds(int value) Sets the duration in seconds.enablePromptExpansion(boolean value) Sets the prompt expansion toggle.enableSafetyChecker(boolean value) Sets the content safety checker toggle.firstFrameImageUrl(String value) Sets the first frame image URL.lastFrameImageUrl(String value) Sets the last frame image URL.model(ImageToVideoModel value) Sets the model slug using a typed model value.Sets the model slug using a string value.multiShots(boolean value) Sets the multi-shot mode toggle.negativePrompt(String value) Sets the negative prompt describing what to avoid.outputResolution(String value) Sets the output resolution.Sets the text prompt.Sets the alternate aspect ratio value.seed(int value) Sets the random seed.sourceVideoUrl(String value) Sets the source video URL.watermark(boolean value) Sets the watermark toggle.
-
Method Details
-
model
Sets the model slug using a typed model value. -
model
Sets the model slug using a string value. -
prompt
Sets the text prompt. -
callbackUrl
Sets the webhook URL for task completion notifications. -
firstFrameImageUrl
Sets the first frame image URL. -
lastFrameImageUrl
Sets the last frame image URL. -
sourceVideoUrl
Sets the source video URL. -
durationSeconds
Sets the duration in seconds. -
outputResolution
Sets the output resolution. -
aspectRatio
Sets the output aspect ratio. -
aspectRatio
Sets the output aspect ratio. -
negativePrompt
Sets the negative prompt describing what to avoid. -
enablePromptExpansion
Sets the prompt expansion toggle. -
seed
Sets the random seed. -
acceleration
Sets the acceleration mode. -
enableSafetyChecker
Sets the content safety checker toggle. -
watermark
Sets the watermark toggle. -
audio
Sets the audio generation toggle. -
multiShots
Sets the multi-shot mode toggle. -
drivingAudioUrl
Sets the driving audio URL. -
backgroundAudioUrl
Sets the background audio URL. -
ratio
Sets the alternate aspect ratio value. -
build
Builds immutable image-to-video parameters.
-