A marketing team has deployed the generally available GPT-Image-2 model in Microsoft Foundry. They call the image generation API to create web banners, with "n": 4 in every request.
Requirements:
- Each image must have a 16:9 aspect ratio and be at least 2,000 pixels wide.
- Generation latency must be as low as possible.
- The request must be valid for the GPT-Image-2 deployment.
Which size and quality values should the team use in the request body?
GPT-Image-2 supports explicit image dimensions with edges divisible by 16, a maximum long edge of 3,840 px, an aspect ratio no greater than 3:1, and a total of 655,360–8,294,400 pixels. A size of 2048x1152 contains 2,359,296 pixels, meets these limits, and satisfies the required aspect ratio and minimum width. Of its quality values (low, medium, high), low is the one optimized for latency-sensitive use cases.
- Not correct:
"size": "4096x2304", "quality": "low". GPT-Image-2 supports a long edge of up to 3,840 px, and 4,096 px exceeds that limit. - Not correct:
"size": "2048x1152", "quality": "high". The size is valid, but for GPT-Image-2 it is low quality, not high, that is optimized for latency-sensitive use cases. - Not correct:
"size": "2000x1125", "quality": "low". GPT-Image-2 requires both edges to be multiples of 16 px, and 1,125 is not a multiple of 16. - Not correct:
"size": "2048x1152", "quality": "max". The GPT-Image-2 quality controls are low, medium and high. The max value is listed for the GPT-Image-2.5 models, not for GPT-Image-2. - Correct:
"size": "2048x1152", "quality": "low". 2048x1152 is 16:9 and at least 2,000 px wide. Both edges are multiples of 16, the long edge is under 3,840 px, and its 2,359,296 pixels fall within the permitted range. The low quality setting is optimized for latency-sensitive use cases.