Class ImageGenerationParameters
- Namespace
- GenerativeAI.Types
- Assembly
- GenerativeAI.dll
Represents the parameters for image generation.
public class ImageGenerationParameters
- Inheritance
-
ImageGenerationParameters
- Inherited Members
- Extension Methods
Properties
AddWatermark
Gets or sets a value indicating whether to add an invisible watermark to the generated images.
[JsonPropertyName("addWatermark")]
public bool? AddWatermark { get; set; }
Property Value
- bool?
AspectRatio
Gets or sets the aspect ratio for the image. The default value is "1:1".
[JsonPropertyName("aspectRatio")]
public string? AspectRatio { get; set; }
Property Value
EnhancePrompt
Gets or sets a value indicating whether to enhance the prompt using an LLM.
[JsonPropertyName("enhancePrompt")]
public bool? EnhancePrompt { get; set; }
Property Value
- bool?
Mode
Gets or sets the generation mode. Must be set to "upscale" for upscaling requests.
[JsonPropertyName("mode")]
public string? Mode { get; set; }
Property Value
NegativePrompt
Gets or sets a description of what to discourage in the generated images.
[JsonPropertyName("negativePrompt")]
public string? NegativePrompt { get; set; }
Property Value
OutputOptions
Gets or sets the output options for the image.
[JsonPropertyName("outputOptions")]
public OutputOptions? OutputOptions { get; set; }
Property Value
PersonGeneration
Gets or sets the setting for allowing generation of people by the model.
[JsonPropertyName("personGeneration")]
public PersonGeneration? PersonGeneration { get; set; }
Property Value
SafetySetting
Gets or sets the filter level for safety filtering.
[JsonPropertyName("safetySetting")]
public ImageSafetySetting? SafetySetting { get; set; }
Property Value
SampleCount
Gets or sets the number of images to generate. The default value is 4.
[JsonPropertyName("sampleCount")]
public int? SampleCount { get; set; }
Property Value
- int?
SampleImageStyle
Gets or sets the style for the generated images. Only for imagegeneration@002.
[JsonPropertyName("sampleImageStyle")]
public string? SampleImageStyle { get; set; }
Property Value
Seed
Gets or sets the random seed for image generation.
[JsonPropertyName("seed")]
public uint? Seed { get; set; }
Property Value
- uint?
StorageUri
Gets or sets the Cloud Storage URI to store the generated images.
[JsonPropertyName("storageUri")]
public string? StorageUri { get; set; }
Property Value
UpscaleConfig
Gets or sets the configuration for upscaling the image.
[JsonPropertyName("upscaleConfig")]
public UpscaleConfig? UpscaleConfig { get; set; }