Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

ImageGenerationOptions.md

77 lines1.4 KB

Interface: ImageGenerationOptions<TProviderOptions>

Defined in: types.ts:771

Options for image generation. These are the common options supported across providers.

Type Parameters

TProviderOptions

TProviderOptions extends object = object

Properties

model

model: string;

Defined in: types.ts:775

The model to use for image generation


modelOptions?

optional modelOptions: TProviderOptions;

Defined in: types.ts:783

Model-specific options for image generation


numberOfImages?

optional numberOfImages: number;

Defined in: types.ts:779

Number of images to generate (default: 1)


prompt

prompt: string;

Defined in: types.ts:777

Text description of the desired image(s)


size?

optional size: string;

Defined in: types.ts:781

Image size in WIDTHxHEIGHT format (e.g., "1024x1024")