Class ImageContentData
Inheritance
ImageContentData
Assembly: Glitch9.AIDevKit.dll
Syntax
public sealed class ImageContentData : IContentData, IBase64Source, IImageAsset, IImageChunk, IUrlSource
Properties
|
Edit this page
View Source
Detail
Specifies the detail level of the image.
low uses fewer tokens, you can opt in to high resolution using high.
Default value is auto
Declaration
public OpenAITypes.ImageDetail? Detail { get; set; }
Property Value
|
Edit this page
View Source
Encoding
Declaration
public ImageEncoding Encoding { get; set; }
Property Value
|
Edit this page
View Source
FileId
The ID of the file to be sent to the model.
Declaration
public string FileId { get; set; }
Property Value
|
Edit this page
View Source
Metadata
Declaration
public Metadata Metadata { get; set; }
Property Value
|
Edit this page
View Source
Url
The URL of the image to be sent to the model.
A fully qualified URL or base64 encoded image in a data URL.
Declaration
public string Url { get; set; }
Property Value
Methods
|
Edit this page
View Source
GetBase64String()
Declaration
public string GetBase64String()
Returns
|
Edit this page
View Source
GetDownloadUrl()
Declaration
public string GetDownloadUrl()
Returns
|
Edit this page
View Source
IsBase64()
Indicates if the image is in base64 format.
This is true if the URL starts with "data:image/png;base64,".
Declaration
Returns
|
Edit this page
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements
Extension Methods