Best setting for common sizes
For each size: the setting to ask for, what Stable Diffusion XL gives you, and what to do to reach the exact size.
| For | Set | You get | Then |
|---|---|---|---|
| 9:16 video 1080 × 1920 |
width: 768, height: 1344 |
768 × 1344 | Scale up to 1097 × 1920 (×1.43), then trim 8 px from the left and 9 px from the right Scaling up ×1.43 softens detail. |
| 4:5 post 1080 × 1350 |
width: 896, height: 1152 |
896 × 1152 | Scale up to 1080 × 1389 (×1.21), then trim 19 px from the top and 20 px from the bottom Scaling up ×1.21 softens detail. |
| Full HD 1920 × 1080 |
width: 1344, height: 768 |
1344 × 768 | Scale up to 1920 × 1097 (×1.43), then trim 8 px from the top and 9 px from the bottom Scaling up ×1.43 softens detail. |
| 720p 1280 × 720 |
width: 1344, height: 768 |
1344 × 768 | Scale to 1280 × 731 (×0.952), then trim 5 px from the top and 6 px from the bottom |
| Square 1080 × 1080 |
width: 1024, height: 1024 |
1024 × 1024 | Scale up to 1080 × 1080 (×1.05) Scaling up ×1.05 softens detail. |
| Instagram 1080 × 1440 |
width: 896, height: 1152 |
896 × 1152 | Scale up to 1120 × 1440 (×1.25), then trim 20 px from the left and right Scaling up ×1.25 softens detail. |
| Pinterest 1000 × 1500 |
width: 832, height: 1216 |
832 × 1216 | Scale up to 1026 × 1500 (×1.23), then trim 13 px from the left and right Scaling up ×1.23 softens detail. |
| YouTube 3840 × 2160 |
width: 1344, height: 768 |
1344 × 768 | Scale up to 3840 × 2194 (×2.86), then trim 17 px from the top and bottom Scaling up ×2.86 softens detail. |
| LinkedIn 1512 × 256 |
width: 1536, height: 640 |
1536 × 640 | Scale to 1512 × 630 (×0.984), then trim 187 px from the top and bottom 1512 × 256 (5.91:1) is wider than any shape it makes, so a lot is trimmed. |
Good to know
- Stability calls these the best sizes for SDXL 1.0, announced on July 26, 2023; other sizes may crop the subject unexpectedly.
Sources
Every size on this page comes from Stability AI’s own documentation.
Checked against SDXL AWS documentation (Stability AI) and Announcing SDXL 1.0 (Stability AI).
Other image models
- GPT Image 2.6: any size in multiples of 16, up to 3,840 px a side, from 3:1 to 1:3.
- Nano Banana 2.1: 14 shapes at 1K, 2K and 4K.
- Midjourney V8.2: any shape up to 14:1 or 1:14.
- FLUX 3 Image: any size in multiples of 16, up to 6,256 px a side, from 8:1 to 1:8.
- FLUX.2: any size in multiples of 16, up to 4.2 MP.
- Stable Image API (SD 3.5, Ultra): 9 shapes at 1 MP.
- Ideogram 4.6: any size in multiples of 32, up to 8,192 px a side, from 6:1 to 1:6.
- Adobe Firefly (web app): 4 shapes.
More tools
- AI image & video sizes: every model’s best setting for any size, side by side.
- Social media image & video sizes: the sizes to aim for on each social platform.
- Image & video checker: check the exact size and aspect ratio of what a model made.