Skip to content

AI image sizes and their aspect ratios

Pick a ratio, a pixel budget and the step your model needs. You get the closest size it can make, how far that is from your ratio, and a size that hits it exactly.

Enter a ratio between 0.1 and 100 on each side.

Ratio and model limits

Pixel budget
Sides divisible by
Size to enter
× –
Its real ratio
:–
Exactly 16:9
× –

The budget counts one megapixel as 1024 × 1024 pixels, the size these models are trained around. Results show real megapixels, so 1344 × 768 is 1.03 MP.

Model presets

Checked against the model documentation in November 2026. Some hosts use a larger step than the model itself, so check the field description where you generate.

Fixed sizes and their real ratios

Some generators only accept a short list of sizes. Most of them are not the ratio they are sold as.

DALL·E 3

Three sizes. The wide ones are 7:4, slightly narrower than 16:9.

Size Ratio Closest common ratio
1024 × 1024 1:1 exactly 1:1
1792 × 1024 7:4 16:9, 1.6% narrower
1024 × 1792 4:7 9:16, 1.6% wider

GPT Image 1

Three sizes, all on a standard ratio. Later GPT Image models also accept your own width and height.

Size Ratio Closest common ratio
1024 × 1024 1:1 exactly 1:1
1536 × 1024 3:2 exactly 3:2
1024 × 1536 2:3 exactly 2:3

Stable Diffusion XL

The sizes SDXL was trained on, all close to one megapixel with sides in steps of 64 px. They give the cleanest results.

Size Ratio Closest common ratio
1024 × 1024 1:1 exactly 1:1
1152 × 896 9:7 5:4, 2.9% wider
896 × 1152 7:9 4:5, 2.8% narrower
1216 × 832 19:13 3:2, 2.6% narrower
832 × 1216 13:19 2:3, 2.6% wider
1344 × 768 7:4 16:9, 1.6% narrower
768 × 1344 4:7 9:16, 1.6% wider
1536 × 640 12:5 21:9, 2.9% wider
640 × 1536 5:12 none within 5%

Ratios are reduced by the greatest common divisor, so 1792 × 1024 becomes 7:4 (both sides divide by 256).

Cropping to an exact ratio

When a platform needs exactly 16:9 or 4:5, crop the generated image. These are the largest crops that are exactly on the ratio.

Generated Target Crop to
1792 × 1024 16:9 1792 × 1008 1.6% cut off
1024 × 1792 9:16 1008 × 1792 1.6% cut off
1344 × 768 16:9 1344 × 756 1.6% cut off
768 × 1344 9:16 756 × 1344 1.6% cut off
1216 × 832 3:2 1215 × 810 2.7% cut off
1152 × 896 5:4 1120 × 896 2.8% cut off
896 × 1152 4:5 896 × 1120 2.8% cut off
1536 × 640 21:9 1491 × 639 3.1% cut off

Why you rarely get an exact ratio

Image models work on a grid that is smaller than the final picture, usually by a factor of 8 or 16. Each side of the image has to be a whole number of grid cells, so width and height must divide by 8, 16, 32 or 64, depending on the model. On top of that, a model makes its best images near the pixel count it was trained on. Those two limits together rule out most exact ratios.

16:9 shows the problem. At about one megapixel in steps of 64 px, the closest size is 1344 × 768, which is 7:4. The nearest exact 16:9 sizes are 1024 × 576 and 2048 × 1152, which are about half and double the budget. With a 16 px step, 1280 × 720 is exactly 16:9 at 0.92 MP.

Which size to use

If the image goes somewhere that crops it anyway, such as a feed or a wallpaper, generate at the closest size and leave it. If it has to be exact, such as a video frame or a print, either generate at an exact size from the calculator, or generate the closest size and crop a few rows. Cropping 1344 × 768 to 1344 × 756 removes 1.6% of the picture.

Midjourney takes a ratio instead of a size, so it has its own guide. To check what you got, drop the files into the image aspect ratio detector. To scale a size up for print or video, use the aspect ratio calculator.

Questions about AI image sizes

Is 1792 × 1024 a 16:9 image?
No. 1792 × 1024 is 7:4, or 1.75 to 1, while 16:9 is 1.778 to 1. The image is 1.6% narrower than 16:9. The exact 16:9 crop is 1792 × 1008. 1024 × 1792 is 4:7, and its 9:16 crop is 1008 × 1792.
What aspect ratio is 1536 × 1024?
1536 × 1024 is exactly 3:2, the ratio of most camera sensors. 1024 × 1536 is the portrait version, 2:3. Both are GPT Image sizes.
What aspect ratio is 1344 × 768?
1344 × 768 is 7:4, the same as 1792 × 1024. It is the Stable Diffusion XL size usually listed as 16:9. To get exactly 16:9, crop it to 1344 × 756.
What is the best 16:9 size for Stable Diffusion XL?
1344 × 768 is the training size closest to 16:9 and gives the cleanest results. If you need exactly 16:9 and your interface allows steps of 8 or 16 px, 1280 × 720 is exact at a slightly lower pixel count.
What size should I use for Flux?
FLUX models take a width and height in steps of 16 or 32 px, depending on the model and the host, and work best up to about 2 megapixels. Choose the FLUX preset in the calculator and your ratio. For 16:9 at 2 MP in steps of 16 px, that is 1936 × 1088, or exactly 2048 × 1152.
Why do AI generators need sizes divisible by 64?
The model works on a compressed grid, usually 8 times smaller than the image on each side, and some models group that grid again. Sizes that do not fit the grid are rounded or rejected. SDXL was trained on sizes in steps of 64 px, so those work best with it.