Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ImageGenerationOptions Class

Definition

Namespace:
Microsoft.Extensions.AI
Assembly:
Microsoft.Extensions.AI.Abstractions.dll
Package:
Microsoft.Extensions.AI.Abstractions v10.7.0
Source:
ImageGenerationOptions.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Represents the options for an image generation request.

public ref class ImageGenerationOptions
public class ImageGenerationOptions
type ImageGenerationOptions = class
Public Class ImageGenerationOptions
Inheritance
ImageGenerationOptions

Constructors

Name Description
ImageGenerationOptions()

Initializes a new instance of the ImageGenerationOptions class.

ImageGenerationOptions(ImageGenerationOptions)

Initializes a new instance of the ImageGenerationOptions class, performing a shallow copy of all properties from other.

Properties

Name Description
AdditionalProperties

Gets or sets any additional properties associated with the options.

Count

Gets or sets the number of images to generate.

ImageSize

Gets or sets the size of the generated image.

MediaType

Gets or sets the media type (also known as MIME type) of the generated image.

ModelId

Gets or sets the model ID to use for image generation.

RawRepresentationFactory

Gets or sets a callback responsible for creating the raw representation of the image generation options from an underlying implementation.

ResponseFormat

Gets or sets the response format of the generated image.

StreamingCount

Gets or sets the number of intermediate streaming images to generate.

Methods

Name Description
Clone()

Produces a clone of the current ImageGenerationOptions instance.

Applies to


Feedback

Was this page helpful?