Skip to content

GenerateImageOptions

Namespace: Vercel.AI

public sealed class GenerateImageOptions

Image generation options.

Inheritance: object

View source

public string? AspectRatio { get; set; }

Aspect ratio.

Value: string

View source

public int Count { get; set; }

Image count.

Value: int

View source

public IReadOnlyList<ImageModelFile>? Files { get; set; }

Input images for an edit.

Value: IReadOnlyList<ImageModelFile>

View source

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

Headers for this call. They override the provider headers.

Value: IReadOnlyDictionary<string, string>

View source

public ImageModelFile? Mask { get; set; }

Edit mask.

Value: ImageModelFile

View source

public IImageModel? Model { get; set; }

Explicit image model.

Value: IImageModel

View source

public string? ModelId { get; set; }

Gateway image model id.

Value: string

View source

public string Prompt { get; set; }

Prompt.

Value: string

View source

public IReadOnlyDictionary<string, JsonElement>? ProviderOptions { get; set; }

Provider options, keyed by provider id.

Value: IReadOnlyDictionary<string, JsonElement>

View source

public int? Seed { get; set; }

Seed. Models that do not support it add a warning.

Value: int?

View source

public string? Size { get; set; }

Size.

Value: string

View source

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