OpenAIImageFile
Namespace: Vercel.AI.OpenAI
public sealed class OpenAIImageFileAn image file sent to the edits endpoint.
Inheritance: object
Constructors
Section titled “Constructors”OpenAIImageFile(byte[], string, string?)
Section titled “OpenAIImageFile(byte[], string, string?)”public OpenAIImageFile(byte[] data, string mediaType, string? fileName)Creates an inline image file.
Parameters
| Name | Type | Description |
|---|---|---|
data |
byte[] | |
mediaType |
string | |
fileName |
string |
Properties
Section titled “Properties”public byte[] Data { get; }Image bytes.
Value: byte[]
FileName
Section titled “FileName”public string? FileName { get; }File name used in the multipart body.
Value: string
MediaType
Section titled “MediaType”public string MediaType { get; }IANA media type.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product