Best setting for common sizes
For each size: the setting to ask for, what Stable Image API (SD 3.5, Ultra) gives you, and what to do to reach the exact size.
| For | Set | You get | Then |
|---|---|---|---|
| 9:16 video 1080 × 1920 |
aspect_ratio: "9:16" |
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 |
aspect_ratio: "4:5" |
896 × 1088 | Scale up to 1112 × 1350 (×1.24), then trim 16 px from the left and right Scaling up ×1.24 softens detail. |
| Full HD 1920 × 1080 |
aspect_ratio: "16:9" |
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 |
aspect_ratio: "16:9" |
1344 × 768 | Scale to 1280 × 731 (×0.952), then trim 5 px from the top and 6 px from the bottom |
| Square 1080 × 1080 |
aspect_ratio: "1:1" |
1024 × 1024 | Scale up to 1080 × 1080 (×1.05) Scaling up ×1.05 softens detail. |
| Instagram 1080 × 1440 |
aspect_ratio: "2:3" |
832 × 1216 | Scale up to 1080 × 1578 (×1.3), then trim 69 px from the top and bottom Scaling up ×1.3 softens detail. |
| Pinterest 1000 × 1500 |
aspect_ratio: "2:3" |
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 |
aspect_ratio: "16:9" |
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 |
aspect_ratio: "21:9" |
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
- Text to image only, and the default is 1:1; there’s no width or height setting.
- Stable Image Core takes the same shapes, but Stability says it makes 1.5 MP, so its sizes may be larger than these.
Sources
Every size on this page comes from Stability AI’s own documentation.
Checked against Stable Diffusion 3.5 (Stability AI API reference), Stable Image Ultra (Stability AI API reference), Stable Image Core (Stability AI API reference) and Understanding aspect ratios in our APIs (Stability AI knowledge base).
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 Diffusion XL: 9 set sizes.
- 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.