How to Add Custom Image Sizes Beyond GPT-Image-1 Defaults in Node.js?

Hi everyone,
I’m using Node.js to generate images with GPT-Image-1, and I need to support additional custom image sizes apart from the default sizes provided by the model.

I’ve checked the documentation, but I couldn’t find any clear way to define custom dimensions directly in the API request. If anyone has figured out a method—either a workaround, a hidden parameter, or an alternative approach—to generate images in custom sizes, I would really appreciate your guidance.

If anyone knows how to do this or has any suggestions, please help me out.

Thank you!

1 Like