Skip to content

OpenAIImageGeneration

Namespace: Vercel.AI.OpenAI

public sealed class OpenAIImageGeneration

Image generation result, including usage and warnings.

Inheritance: object

View source

public IReadOnlyDictionary<string, string> Headers { get; }

HTTP response headers.

Value: IReadOnlyDictionary<string, string>

View source

public IReadOnlyList<GeneratedImage> Images { get; }

Generated images.

Value: IReadOnlyList<GeneratedImage>

View source

public int? InputTokens { get; }

Input tokens, when the provider reports them.

Value: int?

View source

public string ModelId { get; }

Model id used for the call.

Value: string

View source

public int? OutputTokens { get; }

Output tokens, when the provider reports them.

Value: int?

View source

public JsonElement ProviderMetadata { get; }

Provider metadata, including per-image token details.

Value: JsonElement

View source

public DateTimeOffset Timestamp { get; }

Timestamp recorded for the response.

Value: DateTimeOffset

View source

public int? TotalTokens { get; }

Total tokens, when the provider reports them.

Value: int?

View source

public IReadOnlyList<OpenAICallWarning> Warnings { get; }

Warnings produced while preparing the request.

Value: IReadOnlyList<OpenAICallWarning>

View source

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