Skip to content

Commit e61f96d

Browse files
committed
docs(openai): explain flexible GPT Image 2 dimensions
1 parent 6f77430 commit e61f96d

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎docs/tools/image-generation.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,15 @@ and ComfyUI support 1.
309309
those into a supported `size`, otherwise the tool reports them as
310310
ignored overrides.
311311

312+
For direct OpenAI Images API requests, `gpt-image-2` and its
313+
`gpt-image-2-2026-04-21` snapshot preserve valid explicit
314+
`WIDTHxHEIGHT` sizes instead of snapping them to presets. Both
315+
dimensions must be multiples of 16, neither may exceed 3840 pixels,
316+
the aspect ratio cannot exceed 3:1, and the image must contain
317+
between 655,360 and 8,294,400 pixels. For example, `1024x640` is
318+
valid. When only `aspectRatio` is specified, OpenClaw still selects
319+
the closest supported size.
320+
312321
OpenAI-specific options live under the `openai` object:
313322

314323
```json

0 commit comments

Comments
 (0)