GenerateImageRequest
Namespace: Vercel.AI.Operations
public sealed class GenerateImageRequest : OperationRequestOptions for CancellationToken).
Inheritance: object → OperationRequest
Properties
Section titled “Properties”AspectRatio
Section titled “AspectRatio”public string? AspectRatio { get; set; }Aspect ratio such as 16:9.
Value: string
MaxImagesPerCall
Section titled “MaxImagesPerCall”public int? MaxImagesPerCall { get; set; }Overrides the model’s maximum images per call.
Value: int?
public IImageCaller? Model { get; set; }Image model.
Value: IImageCaller
public int N { get; set; }Number of images. Default 1.
Value: int
Prompt
Section titled “Prompt”public ImagePrompt? Prompt { get; set; }Text or edit prompt.
Value: ImagePrompt
public int? Seed { get; set; }Seed.
Value: int?
public string? Size { get; set; }Size such as 1024x1024.
Value: string
public string? Text { get; set; }Text prompt. Ignored when Prompt is set.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product