OpenAIImageCall
Namespace: Vercel.AI.OpenAI
public sealed class OpenAIImageCallImage generation settings beyond the shared prompt and size.
Inheritance: object
Constructors
Section titled “Constructors”OpenAIImageCall(string)
Section titled “OpenAIImageCall(string)”public OpenAIImageCall(string prompt)Creates an image call.
Parameters
| Name | Type | Description |
|---|---|---|
prompt |
string |
Properties
Section titled “Properties”AspectRatio
Section titled “AspectRatio”public string? AspectRatio { get; set; }Aspect ratio. OpenAI image models do not accept it.
Value: string
public int Count { get; set; }How many images to generate.
Value: int
public IReadOnlyList<OpenAIImageFile>? Files { get; set; }Source images for an edit.
Value: IReadOnlyList<OpenAIImageFile>
Headers
Section titled “Headers”public IReadOnlyDictionary<string, string?>? Headers { get; set; }Extra HTTP headers.
Value: IReadOnlyDictionary<string, string>
public OpenAIImageFile? Mask { get; set; }Optional edit mask.
Value: OpenAIImageFile
Prompt
Section titled “Prompt”public string Prompt { get; }Image prompt.
Value: string
ProviderOptions
Section titled “ProviderOptions”public JsonElement? ProviderOptions { get; set; }Provider options. The openai object is read.
Value: JsonElement?
public int? Seed { get; set; }Seed. OpenAI image models do not accept it.
Value: int?
public string? Size { get; set; }Size such as 1024x1024.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product