ImageModelCall
Namespace: Vercel.AI.Operations
public sealed class ImageModelCallArguments for one image model call.
Inheritance: object
Constructors
Section titled “Constructors”ImageModelCall(string?, IReadOnlyList<ImageModelFile>?, ImageModelFile?, int, string?, string?, int?, JsonElement?, IReadOnlyDictionary<string, string>, CancellationToken)
Section titled “ImageModelCall(string?, IReadOnlyList<ImageModelFile>?, ImageModelFile?, int, string?, string?, int?, JsonElement?, IReadOnlyDictionary<string, string>, CancellationToken)”public ImageModelCall(string? prompt, IReadOnlyList<ImageModelFile>? files, ImageModelFile? mask, int n, string? size, string? aspectRatio, int? seed, JsonElement? providerOptions, IReadOnlyDictionary<string, string> headers, CancellationToken cancellationToken)Creates a call.
Parameters
| Name | Type | Description |
|---|---|---|
prompt |
string | |
files |
IReadOnlyList<ImageModelFile> | |
mask |
ImageModelFile | |
n |
int | |
size |
string | |
aspectRatio |
string | |
seed |
int? | |
providerOptions |
JsonElement? | |
headers |
IReadOnlyDictionary<string, string> | |
cancellationToken |
CancellationToken |
Properties
Section titled “Properties”AspectRatio
Section titled “AspectRatio”public string? AspectRatio { get; }Aspect ratio such as 16:9.
Value: string
CancellationToken
Section titled “CancellationToken”public CancellationToken CancellationToken { get; }Cancellation token.
Value: CancellationToken
public IReadOnlyList<ImageModelFile>? Files { get; }Reference images.
Value: IReadOnlyList<ImageModelFile>
Headers
Section titled “Headers”public IReadOnlyDictionary<string, string> Headers { get; }Headers including the user-agent suffix.
Value: IReadOnlyDictionary<string, string>
public ImageModelFile? Mask { get; }Mask image.
Value: ImageModelFile
public int N { get; }Images requested from this call.
Value: int
Prompt
Section titled “Prompt”public string? Prompt { get; }Prompt text.
Value: string
ProviderOptions
Section titled “ProviderOptions”public JsonElement? ProviderOptions { get; }Provider options. Empty object when the caller omitted them.
Value: JsonElement?
public int? Seed { get; }Seed.
Value: int?
public string? Size { get; }Size such as 1024x1024.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product