Package ai.runapi.wan.types
Class TextToVideoParams.Builder
java.lang.Object
ai.runapi.wan.types.TextToVideoParams.Builder
- Enclosing class:
TextToVideoParams
Builder for
TextToVideoParams.-
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.backgroundAudioUrl(String value) Sets the background audio URL.build()Builds immutable text-to-video parameters.callbackUrl(String value) Sets the webhook URL for task completion notifications.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.model(TextToVideoModel value) Sets the model slug using a typed model value.Sets the model slug using a string value.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.referenceAudioUrl(String value) Sets the reference audio URL.referenceImageUrls(List<String> values) Sets the reference image URLs.referenceVideoUrls(List<String> values) Sets the reference video URLs.seed(int value) Sets the random seed; unsupported by wan-2.6-text-to-video.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. -
durationSeconds
Sets the duration in seconds. -
outputResolution
Sets the output resolution. -
aspectRatio
Sets the output aspect ratio. -
aspectRatio
Sets the output aspect ratio. -
ratio
Sets the alternate aspect ratio value. -
negativePrompt
Sets the negative prompt describing what to avoid. -
referenceImageUrls
Sets the reference image URLs. -
referenceVideoUrls
Sets the reference video URLs. -
firstFrameImageUrl
Sets the first frame image URL. -
referenceAudioUrl
Sets the reference audio URL. -
enablePromptExpansion
Sets the prompt expansion toggle. -
seed
Sets the random seed; unsupported by wan-2.6-text-to-video. -
acceleration
Sets the acceleration mode. -
enableSafetyChecker
Sets the content safety checker toggle. -
watermark
Sets the watermark toggle. -
backgroundAudioUrl
Sets the background audio URL. -
build
Builds immutable text-to-video parameters.
-