GenerateImagesInput
Defined in: core/src/images.ts:16
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
S extends RequestedSize |
ImageSize |
Properties
Section titled “Properties”aspectRatio
Section titled “aspectRatio”aspectRatio: AspectRatio;Defined in: core/src/images.ts:18
model?
Section titled “model?”optional model?: string;Defined in: core/src/images.ts:32
optional n?: number;Defined in: core/src/images.ts:25
outputFormat?
Section titled “outputFormat?”optional outputFormat?: "png" | "svg";Defined in: core/src/images.ts:22
OpenRouter output format. Defaults to PNG.
prompt
Section titled “prompt”prompt: string;Defined in: core/src/images.ts:17
recraft?
Section titled “recraft?”optional recraft?: object;Defined in: core/src/images.ts:24
Recraft models on OpenRouter only. Each RGB channel is an integer from 0 to 255.
backgroundColor?
Section titled “backgroundColor?”optional backgroundColor?: Rgb;colors?
Section titled “colors?”optional colors?: readonly Rgb[];referenceImages?
Section titled “referenceImages?”optional referenceImages?: readonly ImagePart[];Defined in: core/src/images.ts:26
retry?
Section titled “retry?”optional retry?: "never";Defined in: core/src/images.ts:31
Do not retry or rotate keys for this call. Does not change n.
optional seed?: number;Defined in: core/src/images.ts:28
Unsupported by OpenAI’s Images API.
signal?
Section titled “signal?”optional signal?: AbortSignal;Defined in: core/src/images.ts:29
optional size?: S;Defined in: core/src/images.ts:20
Defaults to 1K. OpenAI uses aspectRatio instead. On OpenRouter, “provider” omits resolution.