diff --git a/AGENTS.md b/AGENTS.md index 9634f29..8bfdcc9 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -91,6 +91,14 @@ Three files do everything: - Targets the **gpt-image series only** (gpt-image-2 default). Do not reintroduce DALL·E-only fields like `response_format` — gpt-image always returns `b64_json`. + - `gpt-image-2` size constraints (per the OpenAI cookbook): both edges + multiple of 16, max edge **< 3840**, long/short ≤ 3:1, total pixels + in 655,360–8,294,400, `auto` not supported. Exact 16:9 requires + `16k × 9k` with `k` a multiple of 16 (so `1280×720`, `1536×864`, + `2048×1152`, `2560×1440`, …). Sizes above 2560×1440 are + experimental — the popular 4K target `3840×2160` violates the + `< 3840` rule, round down to `3824×2144` if you need it. Common + misses: `1920×1080` is **not valid** (1080 % 16 ≠ 0). - `client.ts` — browser entry, loaded via `