GenerateImageOptions
Namespace: Vercel.AI
public sealed class GenerateImageOptionsImage generation options.
Inheritance: object
Properties
Section titled “Properties”AspectRatio
Section titled “AspectRatio”public string? AspectRatio { get; set; }Aspect ratio.
Value: string
public int Count { get; set; }Image count.
Value: int
public IReadOnlyList<ImageModelFile>? Files { get; set; }Input images for an edit.
Value: IReadOnlyList<ImageModelFile>
Headers
Section titled “Headers”public IReadOnlyDictionary<string, string?>? Headers { get; set; }Headers for this call. They override the provider headers.
Value: IReadOnlyDictionary<string, string>
public ImageModelFile? Mask { get; set; }Edit mask.
Value: ImageModelFile
public IImageModel? Model { get; set; }Explicit image model.
Value: IImageModel
ModelId
Section titled “ModelId”public string? ModelId { get; set; }Gateway image model id.
Value: string
Prompt
Section titled “Prompt”public string Prompt { get; set; }Prompt.
Value: string
ProviderOptions
Section titled “ProviderOptions”public IReadOnlyDictionary<string, JsonElement>? ProviderOptions { get; set; }Provider options, keyed by provider id.
Value: IReadOnlyDictionary<string, JsonElement>
public int? Seed { get; set; }Seed. Models that do not support it add a warning.
Value: int?
public string? Size { get; set; }Size.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product