OpenAIImageGeneration
Namespace: Vercel.AI.OpenAI
public sealed class OpenAIImageGenerationImage generation result, including usage and warnings.
Inheritance: object
Properties
Section titled “Properties”Headers
Section titled “Headers”public IReadOnlyDictionary<string, string> Headers { get; }HTTP response headers.
Value: IReadOnlyDictionary<string, string>
Images
Section titled “Images”public IReadOnlyList<GeneratedImage> Images { get; }Generated images.
Value: IReadOnlyList<GeneratedImage>
InputTokens
Section titled “InputTokens”public int? InputTokens { get; }Input tokens, when the provider reports them.
Value: int?
ModelId
Section titled “ModelId”public string ModelId { get; }Model id used for the call.
Value: string
OutputTokens
Section titled “OutputTokens”public int? OutputTokens { get; }Output tokens, when the provider reports them.
Value: int?
ProviderMetadata
Section titled “ProviderMetadata”public JsonElement ProviderMetadata { get; }Provider metadata, including per-image token details.
Value: JsonElement
Timestamp
Section titled “Timestamp”public DateTimeOffset Timestamp { get; }Timestamp recorded for the response.
Value: DateTimeOffset
TotalTokens
Section titled “TotalTokens”public int? TotalTokens { get; }Total tokens, when the provider reports them.
Value: int?
Warnings
Section titled “Warnings”public IReadOnlyList<OpenAICallWarning> Warnings { get; }Warnings produced while preparing the request.
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product