From 008e2db778411c1ab2bd82b79b117c5574183307 Mon Sep 17 00:00:00 2001 From: suraj vishwakarma Date: Thu, 1 May 2025 05:30:29 +0000 Subject: [PATCH] Add support for '1536x1024' size in gpt-image-1 for landscape images --- src/resources/images.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/resources/images.ts b/src/resources/images.ts index de1882d30..25ecf9748 100644 --- a/src/resources/images.ts +++ b/src/resources/images.ts @@ -214,8 +214,9 @@ export interface ImageEditParams { * The size of the generated images. Must be one of `1024x1024`, `1536x1024` * (landscape), `1024x1536` (portrait), or `auto` (default value) for * `gpt-image-1`, and one of `256x256`, `512x512`, or `1024x1024` for `dall-e-2`. + * Added size 1536x1024 | 1024x1536 for `gpt-image-1` to support landscape images. */ - size?: '256x256' | '512x512' | '1024x1024' | null; + size?: '256x256' | '512x512' | '1024x1024' | '1536x1024' | '1024x1536' | 'auto' | null; /** * A unique identifier representing your end-user, which can help OpenAI to monitor