ImageCallOptions
Namespace: Vercel.AI.Provider
public sealed class ImageCallOptionsImage call settings.
Inheritance: object
Constructors
Section titled “Constructors”ImageCallOptions(string)
Section titled “ImageCallOptions(string)”public ImageCallOptions(string prompt)Creates image call options.
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.
Value: string
public int Count { get; set; }How many images to generate.
Value: int
public IReadOnlyList<ImageModelFile>? Files { get; set; }Input images for an edit. Maps to files.
Value: IReadOnlyList<ImageModelFile>
Headers
Section titled “Headers”public IReadOnlyDictionary<string, string?>? Headers { get; set; }Headers for this call. They override the provider headers.
Value: IReadOnlyDictionary<string, string>
public ImageModelFile? Mask { get; set; }Edit mask.
Value: ImageModelFile
Prompt
Section titled “Prompt”public string Prompt { get; }Image prompt.
Value: string
ProviderOptions
Section titled “ProviderOptions”public IReadOnlyDictionary<string, JsonElement>? ProviderOptions { get; set; }Provider options, keyed by provider id.
Value: IReadOnlyDictionary<string, JsonElement>
public int? Seed { get; set; }Seed. Models that do not support it add a warning.
Value: int?
public string? Size { get; set; }Size string such as 1024x1024.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product