Package ai.runapi.flux2.types
Class TextToImageParams.Builder
java.lang.Object
ai.runapi.flux2.types.TextToImageParams.Builder
- Enclosing class:
- TextToImageParams
Builder for
TextToImageParams.-
Method Summary
Modifier and TypeMethodDescriptionaspectRatio(String value) Sets the output aspect ratio.build()Builds immutable text to image parameters.callbackUrl(String value) Sets the webhook URL for task completion notifications.enableSafetyChecker(boolean value) Sets the content safety checker toggle.model(TextToImageModel value) Sets the model slug using a typed model value.Sets the model slug using a string value.outputResolution(String value) Sets the output resolution.Sets the text prompt.
-
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. -
aspectRatio
Sets the output aspect ratio. -
outputResolution
Sets the output resolution. -
enableSafetyChecker
Sets the content safety checker toggle. -
callbackUrl
Sets the webhook URL for task completion notifications. -
build
Builds immutable text to image parameters.
-