Skip to content

OpenAIImageFile

Namespace: Vercel.AI.OpenAI

public sealed class OpenAIImageFile

An image file sent to the edits endpoint.

Inheritance: object

View source

public OpenAIImageFile(byte[] data, string mediaType, string? fileName)

Creates an inline image file.

Parameters

Name Type Description
data byte[]
mediaType string
fileName string

View source

public byte[] Data { get; }

Image bytes.

Value: byte[]

View source

public string? FileName { get; }

File name used in the multipart body.

Value: string

View source

public string MediaType { get; }

IANA media type.

Value: string

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product