OptionalabortAbort 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.
OptionaladdWhether to add a watermark to the generated images.
OptionalaspectAspect ratio of the generated images. Supported values are "1:1", "3:4", "4:3", "9:16", and "16:9".
OptionalbaseThe number of sampling steps. A higher value has better image quality, while a lower value has better latency.
OptionaleditDescribes the editing mode for the request.
OptionalguidanceControls how much the model adheres to the text prompt. Large values increase output and prompt alignment, but may compromise image quality.
OptionalhttpUsed to override HTTP request options.
OptionalincludeWhether to include the Responsible AI filter reason if the image is filtered out of the response.
OptionalincludeWhether to report the safety scores of each generated image and the positive prompt in the response.
OptionallabelsUser specified labels to track billing usage.
OptionallanguageLanguage of the text in the prompt.
OptionalnegativeDescription of what to discourage in the generated images.
OptionalnumberNumber of images to generate.
OptionaloutputCompression quality of the generated image (for image/jpeg
only).
OptionaloutputCloud Storage URI used to store the generated images.
OptionaloutputMIME type of the generated image.
OptionalpersonAllows generation of people by the model.
OptionalsafetyFilter level for safety filtering.
OptionalseedRandom seed for image generation. This is not available when
add_watermark is set to true.
Configuration for editing an image.