vercel.internal.GwImagesRequest

The request body. `n` defaults to 1 (sys_llm's `entry("n").or_insert(1)`); everything else the gateway understands — `size`, `aspectRatio`, `seed`, `providerOptions` — is Vercel AI SDK image-model shape, not OpenAI shape, and rides through `request_body`. `size` / `aspectRatio` / `seed` are the AI SDK image-model call options; they are sent only when the client sets them, so the gateway's own defaults apply otherwise. sys_llm never had first-class fields for them — they went through the extra-body map, which still works and still wins (the merge is last).

Reference version

Signature

class vercel.internal.GwImagesRequest

The request body. n defaults to 1 (sys_llm's entry("n").or_insert(1)); everything else the gateway understands — size, aspectRatio, seed, providerOptions — is Vercel AI SDK image-model shape, not OpenAI shape, and rides through request_body. size / aspectRatio / seed are the AI SDK image-model call options; they are sent only when the client sets them, so the gateway's own defaults apply otherwise. sys_llm never had first-class fields for them — they went through the extra-body map, which still works and still wins (the merge is last).

Source:<builtin>/vercel/ns_internal/images.bamlbytes 15961743

Fields

prompt

string

n

int | null

size

string | null

aspectRatio

string | null

seed

int | null