Package com.google.genai.types
Class EditImageConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.EditImageConfig
Configuration for editing an image.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for EditImageConfig. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAspect ratio of the generated images.The number of sampling steps.static EditImageConfig.Builder
builder()
Instantiates a builder for EditImageConfig.editMode()
Describes the editing mode for the request.static EditImageConfig
Deserializes a JSON string to a EditImageConfig object.Controls how much the model adheres to the text prompt.abstract Optional<HttpOptions>
Used to override HTTP request options.Whether to include the Responsible AI filter reason if the image is filtered out of the response.Whether to report the safety scores of each generated image and the positive prompt in the response.abstract Optional<ImagePromptLanguage>
language()
Language of the text in the prompt.Description of what to discourage in the generated images.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>
Allows generation of people by the model.abstract Optional<SafetyFilterLevel>
Filter level for safety filtering.seed()
Random seed for image generation.abstract EditImageConfig.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
toJson
-
Constructor Details
-
EditImageConfig
public EditImageConfig()
-
-
Method Details
-
httpOptions
Used to override HTTP request options. -
outputGcsUri
Cloud Storage URI used to store the generated images. -
negativePrompt
Description of what to discourage in the generated images. -
numberOfImages
Number of images to generate. -
aspectRatio
Aspect ratio of the generated images. -
guidanceScale
Controls how much the model adheres to the text prompt. Large values increase output and prompt alignment, but may compromise image quality. -
seed
Random seed for image generation. This is not available when ``add_watermark`` is set to true. -
safetyFilterLevel
Filter level for safety filtering. -
personGeneration
Allows generation of people by the model. -
includeSafetyAttributes
Whether to report the safety scores of each generated image and the positive prompt in the response. -
includeRaiReason
Whether to include the Responsible AI filter reason if the image is filtered out of the response. -
language
Language of the text in the prompt. -
outputMimeType
MIME type of the generated image. -
outputCompressionQuality
Compression quality of the generated image (for ``image/jpeg`` only). -
editMode
Describes the editing mode for the request. -
baseSteps
The number of sampling steps. A higher value has better image quality, while a lower value has better latency. -
builder
Instantiates a builder for EditImageConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a EditImageConfig object.
-