Skip to content

GenerateImageRequest

Namespace: Vercel.AI.Operations

public sealed class GenerateImageRequest : OperationRequest

Options for CancellationToken).

Inheritance: object → OperationRequest

View source

public string? AspectRatio { get; set; }

Aspect ratio such as 16:9.

Value: string

View source

public int? MaxImagesPerCall { get; set; }

Overrides the model’s maximum images per call.

Value: int?

View source

public IImageCaller? Model { get; set; }

Image model.

Value: IImageCaller

View source

public int N { get; set; }

Number of images. Default 1.

Value: int

View source

public ImagePrompt? Prompt { get; set; }

Text or edit prompt.

Value: ImagePrompt

View source

public int? Seed { get; set; }

Seed.

Value: int?

View source

public string? Size { get; set; }

Size such as 1024x1024.

Value: string

View source

public string? Text { get; set; }

Text prompt. Ignored when Prompt is set.

Value: string

View source

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