Skip to content

LumaImageRequest

Namespace: Vercel.AI.Luma

public sealed class LumaImageRequest

Luma image generation settings beyond the shared prompt and size.

Inheritance: object

View source

public LumaImageRequest(string prompt)

Creates a request for <code class=“paramref”>prompt</code>.

Parameters

Name Type Description
prompt string

View source

public string? AspectRatio { get; set; }

Aspect ratio such as 16:9, sent as aspect_ratio.

Value: string

View source

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

Reference images. Each one must be a URL.

Value: IReadOnlyList<ImageModelFile>

View source

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

Headers merged over the provider headers.

Value: IDictionary<string, string>

View source

public ImageModelFile? Mask { get; set; }

Edit mask. Luma does not accept one; setting it throws.

Value: ImageModelFile

View source

public string Prompt { get; }

Image prompt.

Value: string

View source

public JsonElement? ProviderOptions { get; set; }

Provider options. The luma object is read: referenceType, images, pollIntervalMillis, and maxPollAttempts configure the call, and other fields are sent in the body.

Value: JsonElement?

View source

public int? Seed { get; set; }

Seed. Luma does not accept it; a warning is returned.

Value: int?

View source

public string? Size { get; set; }

Size. Luma does not accept it; a warning is returned.

Value: string

View source

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