You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit edd5fc1
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: packages/ai/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -694,8 +694,8 @@ this table before swapping only the `model`:
694
694
695
695
✓ lowers natively; ✗ fails whenever the field is set (including `n: 1`); `1` means `n > 1` fails. "width × height"
696
696
computes a size the provider accepts and fails when the request falls outside its limits. ¹ `Image.stream` on OpenAI
697
-
generates one image. On OpenAI, `gpt-image-2` and later get a computed size; older models get the nearest of their
698
-
fixed sizes. `providerOptions.size` replaces `aspect` and `resolution`, so setting both fails. Vercel AI Gateway
697
+
generates one image. On OpenAI, `gpt-image-2` and later get a computed size, and `4K` gets their largest (3840x2160
698
+
at 16:9); older models get the nearest of their fixed sizes. `providerOptions.size` replaces `aspect` and `resolution`, so setting both fails. Vercel AI Gateway
699
699
forwards `outputFormat` but does not apply it, so the returned bytes keep the upstream model's own format. ² Workers AI
700
700
`@cf/black-forest-labs/flux-1-schnell` takes no size, so `aspect` and `resolution` fail there. ³ Non-OpenAI gateway
701
701
models (`bfl/flux-2-pro`) get a computed width × height, which the gateway passes through; models with a fixed list,
0 commit comments