Package ai.runapi.wan.types
Class TextToImageParams.Builder
java.lang.Object
ai.runapi.wan.types.TextToImageParams.Builder
- Enclosing class:
TextToImageParams
Builder for
TextToImageParams.-
Method Summary
Modifier and TypeMethodDescriptionaspectRatio(AspectRatio value) Sets the output aspect ratio.aspectRatio(String value) Sets the output aspect ratio.bboxList(List<BoundingBoxGroup> values) Sets the bounding box constraints.build()Builds immutable text-to-image parameters.callbackUrl(String value) Sets the webhook URL for task completion notifications.colorPalette(List<ColorPaletteItem> values) Sets the color palette constraints.enableSafetyChecker(boolean value) Sets the content safety checker toggle.enableSequential(boolean value) Sets the sequential generation toggle.model(TextToImageModel value) Sets the model slug using a typed model value.Sets the model slug using a string value.outputCount(int value) Sets the number of generated outputs.outputResolution(String value) Sets the output resolution.Sets the text prompt.seed(int value) Sets the random seed.sourceImageUrls(List<String> values) Sets the source image URLs.thinkingMode(boolean value) Sets the enhanced reasoning toggle.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. -
aspectRatio
Sets the output aspect ratio. -
aspectRatio
Sets the output aspect ratio. -
outputResolution
Sets the output resolution. -
outputCount
Sets the number of generated outputs. -
enableSequential
Sets the sequential generation toggle. -
thinkingMode
Sets the enhanced reasoning toggle. -
watermark
Sets the watermark toggle. -
seed
Sets the random seed. -
enableSafetyChecker
Sets the content safety checker toggle. -
sourceImageUrls
Sets the source image URLs. -
colorPalette
Sets the color palette constraints. -
bboxList
Sets the bounding box constraints. -
build
Builds immutable text-to-image parameters.
-