BetaOptional BetaaddWhether to add an invisible watermark to generated images.
If set to true, an invisible SynthID watermark is embedded in generated images to indicate
that they are AI generated. If set to false, watermarking will be disabled.
For Imagen 3 models, the default value is true; see the addWatermark
documentation for more details.
When using the Gemini Developer API (GoogleAIBackend), this will default to true, and cannot be turned off.
Optional BetaaspectThe aspect ratio of the generated images. The default value is square 1:1. Supported aspect ratios depend on the Imagen model, see ImagenAspectRatio for more details.
Optional BetaimageThe image format of the generated images. The default is PNG.
See ImagenImageFormat for more details.
Optional BetanegativeA description of what should be omitted from the generated images.
Support for negative prompts depends on the Imagen model.
See the documentation for more details.
This is no longer supported in the Gemini Developer API (GoogleAIBackend) in versions
greater than imagen-3.0-generate-002.
Optional BetanumberThe number of images to generate. The default value is 1.
The number of sample images that may be generated in each request depends on the model (typically up to 4); see the sampleCount documentation for more details.
Configuration options for generating images with Imagen.
See the documentation for more details.