Table of Contents

Class ImageResponseFormat

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Format of image output.

public class ImageResponseFormat
Inheritance
ImageResponseFormat
Inherited Members
Extension Methods

Properties

AspectRatio

Aspect ratio of the image.

[JsonPropertyName("aspectRatio")]
public AspectRatio? AspectRatio { get; set; }

Property Value

AspectRatio?

Delivery

Whether the image is returned inline or as a URI.

[JsonPropertyName("delivery")]
public Delivery? Delivery { get; set; }

Property Value

Delivery?

ImageSize

Size of the image.

[JsonPropertyName("imageSize")]
public ImageSize? ImageSize { get; set; }

Property Value

ImageSize?

MimeType

MIME type of the image, for example image/png.

[JsonPropertyName("mimeType")]
public string? MimeType { get; set; }

Property Value

string