Skip to content

GeneratedImage

Namespace: Vercel.AI.Provider

public sealed class GeneratedImage

One generated image.

Inheritance: object

View source

public GeneratedImage(string mediaType, byte[]? data, string? url)

Creates an image.

Parameters

Name Type Description
mediaType string
data byte[]
url string

View source

public byte[]? Data { get; }

Inline image bytes.

Value: byte[]

View source

public string MediaType { get; }

IANA media type.

Value: string

View source

public string? Url { get; }

Remote URL.

Value: string

View source

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