Class ImageContent
- Namespace
- OpenAI.Responses
- Assembly
- OpenAI-DotNet.dll
public sealed class ImageContent : BaseResponse, IListItem, IResponseContent, IServerSentEvent
- Inheritance
-
ImageContent
- Implements
-
- Inherited Members
-
Constructors
ImageContent()
ImageContent(byte[], ImageDetail)
public ImageContent(byte[] imageData, ImageDetail detail = ImageDetail.Auto)
Parameters
imageData
byte[]
detail
ImageDetail
ImageContent(string, string, ImageDetail)
public ImageContent(string imageUrl = null, string fileId = null, ImageDetail detail = ImageDetail.Auto)
Parameters
imageUrl
string
fileId
string
detail
ImageDetail
Properties
Detail
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
[JsonPropertyName("detail")]
public ImageDetail Detail { get; }
Property Value
- ImageDetail
FileId
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("file_id")]
public string FileId { get; }
Property Value
- string
ImageUrl
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("image_url")]
public string ImageUrl { get; }
Property Value
- string
Object
[JsonIgnore]
public string Object { get; }
Property Value
- string
Type
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
[JsonPropertyName("type")]
public ResponseContentType Type { get; }
Property Value
- ResponseContentType