Table of Contents

Class SharedImageRequestBaseModel

Namespace
OpenAI.ObjectModels.SharedModels
Assembly
AntRunnerLib.dll
public class SharedImageRequestBaseModel : IEquatable<SharedImageRequestBaseModel>
Inheritance
System.Object
SharedImageRequestBaseModel
Implements
System.IEquatable<SharedImageRequestBaseModel>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()

Properties

Model

The model to use for image generation. Must be one of dall-e-2 or dall-e-3 For ImageEditCreateRequest and for ImageVariationCreateRequest only dall-e-2 modell is supported at this time.

[JsonPropertyName("model")]
public string Model { get; set; }

Property Value

System.String

N

The number of images to generate. Must be between 1 and 10. For dall-e-3 model, only n=1 is supported.

[JsonPropertyName("n")]
public int? N { get; set; }

Property Value

System.Nullable<System.Int32>

ResponseFormat

The format in which the generated images are returned. Must be one of url or b64_json

[JsonPropertyName("response_format")]
public string ResponseFormat { get; set; }

Property Value

System.String

Size

The size of the generated images. Must be one of 256x256, 512x512, or 1024x1024 for dall-e-2. Must be one of 1024x1024, 1792x1024, or 1024x1792 for dall-e-3 models.

Check StaticValues.ImageStatics.Size for possible values

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

Property Value

System.String

User

A unique identifier representing your end-user, which will help OpenAI to monitor and detect abuse. Learn more.

[JsonPropertyName("user")]
public string User { get; set; }

Property Value

System.String