Package com.google.genai.types
Class RecontextImageConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.RecontextImageConfig
Configuration for recontextualizing an image.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for RecontextImageConfig. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionWhether to add a SynthID watermark to the generated images.The number of sampling steps.static RecontextImageConfig.Builder
builder()
Instantiates a builder for RecontextImageConfig.Whether to use the prompt rewriting logic.static RecontextImageConfig
Deserializes a JSON string to a RecontextImageConfig object.abstract Optional<HttpOptions>
Used to override HTTP request options.Number of images to generate.Compression quality of the generated image (for ``image/jpeg`` only).Cloud Storage URI used to store the generated images.MIME type of the generated image.abstract Optional<PersonGeneration>
Whether allow to generate person images, and restrict to specific ages.abstract Optional<SafetyFilterLevel>
Filter level for safety filtering.seed()
Random seed for image generation.abstract RecontextImageConfig.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
RecontextImageConfig
public RecontextImageConfig()
-
-
Method Details
-
httpOptions
Used to override HTTP request options. -
numberOfImages
Number of images to generate. -
baseSteps
The number of sampling steps. A higher value has better image quality, while a lower value has better latency. -
outputGcsUri
Cloud Storage URI used to store the generated images. -
seed
Random seed for image generation. -
safetyFilterLevel
Filter level for safety filtering. -
personGeneration
Whether allow to generate person images, and restrict to specific ages. -
addWatermark
Whether to add a SynthID watermark to the generated images. -
outputMimeType
MIME type of the generated image. -
outputCompressionQuality
Compression quality of the generated image (for ``image/jpeg`` only). -
enhancePrompt
Whether to use the prompt rewriting logic. -
builder
Instantiates a builder for RecontextImageConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a RecontextImageConfig object.
-