• 16:9 1920 × 1080
  • 4K UHD 3840 × 2160 is 16:9
  • 21:9 really 64:27 (2.37:1)
  • 9:16 Reels · Shorts · TikTok
  • 4:5 1080 × 1350 portrait posts
  • 27″ 1440p 108.8 PPI
  • 48 dp 144 px at xxhdpi
  • 1366 × 768 ≈ 16:9
  • 16:10 11% taller than 16:9
  • 2.39:1 cinema scope
  • 32:9 5120 × 1440
  • 3:2 6000 × 4000 camera sensors
  1. Home
  2. AI Image & Video Sizes
  3. Stable Image API (SD 3.5, Ultra)

Stable Image API (SD 3.5, Ultra) sizes and aspect ratios

Stable Image API (SD 3.5, Ultra) makes 9 shapes at 1 MP. Set it with aspect_ratio: "SHAPE".

Stability AI’s image model. Checked against Stability AI’s own documentation on .

9 shapes

What Stable Image API (SD 3.5, Ultra) makes

9 shapes, each at 1 MP: 21:9, 16:9, 3:2, 5:4, 1:1, 4:5, 2:3, 9:16 and 9:21.

Set it with aspect_ratio: "SHAPE"

Its best setting for common sizes

Find the best Stable Image API (SD 3.5, Ultra) size

Enter whole pixels, from 1 to 100,000.

The blank PNG is for apps with no size setting, such as the Gemini app: add it to your chat and ask for your picture on it. It’s made in your browser.

Best setting for 1080 × 1920

  1. Stable Image API (SD 3.5, Ultra) Stability AI · image

    Set
    aspect_ratio: "9:16"
    You get
    768 × 1344
    Then
    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.

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.

ForSetYou getThen
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

More tools