Optional
abortAbort signal which can be used to cancel the request.
NOTE: AbortSignal is a client-only operation. Using it to cancel an operation will not cancel the request in the service. You will still be charged usage for any applicable operations.
Optional
addWhether to add a watermark to the generated images.
Optional
aspectAspect ratio of the generated images. Supported values are "1:1", "3:4", "4:3", "9:16", and "16:9".
Optional
baseThe number of sampling steps. A higher value has better image quality, while a lower value has better latency.
Optional
editDescribes the editing mode for the request.
Optional
guidanceControls how much the model adheres to the text prompt. Large values increase output and prompt alignment, but may compromise image quality.
Optional
httpUsed to override HTTP request options.
Optional
includeWhether to include the Responsible AI filter reason if the image is filtered out of the response.
Optional
includeWhether to report the safety scores of each generated image and the positive prompt in the response.
Optional
languageLanguage of the text in the prompt.
Optional
negativeDescription of what to discourage in the generated images.
Optional
numberNumber of images to generate.
Optional
outputCompression quality of the generated image (for image/jpeg
only).
Optional
outputCloud Storage URI used to store the generated images.
Optional
outputMIME type of the generated image.
Optional
personAllows generation of people by the model.
Optional
safetyFilter level for safety filtering.
Optional
seedRandom seed for image generation. This is not available when
add_watermark
is set to true.
Configuration for editing an image.