Class ImageGenerationRequest
Provider-neutral request for generating images from a text prompt.
public class ImageGenerationRequest
- Inheritance
-
ImageGenerationRequest
- Derived
- Inherited Members
Constructors
ImageGenerationRequest()
public ImageGenerationRequest()
Properties
Background
Requested background behavior or a provider-supported automatic value.
public string Background { get; set; }
Property Value
Count
Number of images requested.
public int Count { get; set; }
Property Value
Model
Optional image model override. When omitted, the service default is used.
public string? Model { get; set; }
Property Value
OutputCompression
Optional compression level for formats that support compression.
public int? OutputCompression { get; set; }
Property Value
- int?
OutputFormat
Requested output format, such as png, jpeg, or webp.
public string OutputFormat { get; set; }
Property Value
Prompt
Description of the image to generate.
public string Prompt { get; set; }
Property Value
Quality
Requested output quality or a provider-supported automatic value.
public string Quality { get; set; }
Property Value
Size
Requested output dimensions or a provider-supported automatic value.
public string Size { get; set; }