GeneratedImage
Namespace: Vercel.AI.Provider
public sealed class GeneratedImageOne generated image.
Inheritance: object
Constructors
Section titled “Constructors”GeneratedImage(string, byte[]?, string?)
Section titled “GeneratedImage(string, byte[]?, string?)”public GeneratedImage(string mediaType, byte[]? data, string? url)Creates an image.
Parameters
| Name | Type | Description |
|---|---|---|
mediaType |
string | |
data |
byte[] | |
url |
string |
Properties
Section titled “Properties”public byte[]? Data { get; }Inline image bytes.
Value: byte[]
MediaType
Section titled “MediaType”public string MediaType { get; }IANA media type.
Value: string
public string? Url { get; }Remote URL.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product