Table of Contents

Class ImageInput

Namespace
Mythosia.AI.Models.Images
Assembly
Mythosia.AI.Abstractions.dll

Binary image input supplied to an image generation service.

public sealed class ImageInput
Inheritance
ImageInput
Inherited Members

Constructors

ImageInput(byte[], string, string)

public ImageInput(byte[] data, string mediaType, string fileName = "image")

Parameters

data byte[]
mediaType string
fileName string

Properties

Data

Raw image bytes.

public byte[] Data { get; }

Property Value

byte[]

FileName

File name supplied to providers that accept multipart uploads.

public string FileName { get; }

Property Value

string

MediaType

MIME type of the image, such as image/png or image/jpeg.

public string MediaType { get; }

Property Value

string