Table of Contents

Class ImageGenerationCall

Namespace
OpenAI.Responses
Assembly
OpenAI-DotNet.dll

An image generation request made by the model.

public sealed class ImageGenerationCall : BaseResponse, IResponseItem, IServerSentEvent, IListItem
Inheritance
ImageGenerationCall
Implements
Inherited Members

Properties

Background

[JsonInclude]
[JsonPropertyName("background")]
public string Background { get; }

Property Value

string

Id

The unique ID of this response item.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("id")]
public string Id { get; }

Property Value

string

Object

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("object")]
public string Object { get; }

Property Value

string

OutputFormat

[JsonInclude]
[JsonPropertyName("output_format")]
public string OutputFormat { get; }

Property Value

string

PartialImageIndex

[JsonInclude]
[JsonPropertyName("partial_image_index")]
public int? PartialImageIndex { get; }

Property Value

int?

PartialImageResult

[JsonInclude]
[JsonPropertyName("partial_image_b64")]
public string PartialImageResult { get; }

Property Value

string

Quality

[JsonInclude]
[JsonPropertyName("quality")]
public string Quality { get; }

Property Value

string

Result

The generated image encoded in base64.

[JsonInclude]
[JsonPropertyName("result")]
public string Result { get; }

Property Value

string

RevisedPrompt

[JsonInclude]
[JsonPropertyName("revised_prompt")]
public string RevisedPrompt { get; }

Property Value

string

Size

[JsonInclude]
[JsonPropertyName("size")]
public string Size { get; }

Property Value

string

Status

The status of the response item.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("status")]
public ResponseStatus Status { get; }

Property Value

ResponseStatus

Type

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
[JsonPropertyName("type")]
public ResponseItemType Type { get; }

Property Value

ResponseItemType