Table of Contents

Class GeneratedImage

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

A single image returned by an image generation service.

public sealed class GeneratedImage
Inheritance
GeneratedImage
Inherited Members

Constructors

GeneratedImage()

public GeneratedImage()

Properties

Data

Raw generated image bytes when returned inline by the provider.

public byte[] Data { get; set; }

Property Value

byte[]

MediaType

MIME type corresponding to Data.

public string MediaType { get; set; }

Property Value

string

RevisedPrompt

Optional provider-revised prompt associated with this image.

public string? RevisedPrompt { get; set; }

Property Value

string

Url

Optional provider-hosted URL when the provider returns one.

public string? Url { get; set; }

Property Value

string