LumaImageRequest
Namespace: Vercel.AI.Luma
public sealed class LumaImageRequestLuma image generation settings beyond the shared prompt and size.
Inheritance: object
Constructors
Section titled “Constructors”LumaImageRequest(string)
Section titled “LumaImageRequest(string)”public LumaImageRequest(string prompt)Creates a request for <code class=“paramref”>prompt</code>.
Parameters
| Name | Type | Description |
|---|---|---|
prompt |
string |
Properties
Section titled “Properties”AspectRatio
Section titled “AspectRatio”public string? AspectRatio { get; set; }Aspect ratio such as 16:9, sent as aspect_ratio.
Value: string
public IReadOnlyList<ImageModelFile>? Files { get; set; }Reference images. Each one must be a URL.
Value: IReadOnlyList<ImageModelFile>
Headers
Section titled “Headers”public IDictionary<string, string>? Headers { get; set; }Headers merged over the provider headers.
Value: IDictionary<string, string>
public ImageModelFile? Mask { get; set; }Edit mask. Luma does not accept one; setting it throws.
Value: ImageModelFile
Prompt
Section titled “Prompt”public string Prompt { get; }Image prompt.
Value: string
ProviderOptions
Section titled “ProviderOptions”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?
public int? Seed { get; set; }Seed. Luma does not accept it; a warning is returned.
Value: int?
public string? Size { get; set; }Size. Luma does not accept it; a warning is returned.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product