Package ai.runapi.imagen4.types
Class TextToImageParams.Builder
java.lang.Object
ai.runapi.imagen4.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.model(TextToImageModel 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.Sets the text prompt.seed(int value) Sets the random seed.
-
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. -
negativePrompt
Sets the negative prompt describing what to avoid. -
aspectRatio
Sets the output aspect ratio. -
seed
Sets the random seed. -
build
Builds immutable text to image parameters.
-