AI image aspect ratio changer: re-render at 9:16 or 16:9
To change an image's aspect ratio with AI, outpaint the new area or redraw the image at the new ratio. Sume has no uncrop tool; here is the redraw.

To change an image's aspect ratio with AI without cropping the subject out, either extend the canvas and let a model fill only the new area (often called outpainting), or have an image model redraw the whole picture at the new ratio from your original. Outpainting leaves the original area in place; a redraw can shift details anywhere in the frame. If you can lose the edges, a plain crop in an image editor changes the ratio with no AI at all.
Sume has no expand or uncrop tool today, so on Sume this is the redraw: a POST /v1/images call with the original as a reference and the new aspect_ratio. The details below come from the Image API docs and the ratio lists GET /v1/images/models serves, read on 2026-09-27.
How do I change an image's aspect ratio with the Image API?
Send the original in input_references, set aspect_ratio to the new shape rather than "auto" (which matches the reference), and say in the prompt what should fill the new space.
- The ratio must be on the model's list; a model only accepts the values its catalog lists.
- The original must be at a public HTTPS URL. Localhost, private-network, and non-HTTPS URLs are rejected before submission.
- Ask for a few candidates with
n, up to 4 per call on these models except Seedream 4.5, which today returns one image per call when you send a reference.
curl -X POST "https://api.sume.com/v1/images" \
-H "Authorization: Bearer $SUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/nano-banana-2",
"prompt": "The same scene as the reference image, reframed as a tall picture: keep the subject, style, and colors, and continue the sky above and the street below.",
"aspect_ratio": "9:16",
"input_references": [
{ "type": "image_url", "image_url": { "url": "https://example.com/square-original.jpg" } }
]
}'Which ratios can I change an image to?
Each model publishes its own list, and today the lists differ at the extremes: Nano Banana 2 adds the banner shapes 4:1, 1:4, 8:1, and 1:8, while the ChatGPT Image models also take custom pixel sizes. For these models that edit from a reference:
| Model ids | `aspect_ratio` values |
|---|---|
openai/gpt-image-2.5, openai/gpt-image-2 | auto, 1:1, 16:9, 9:16, 4:3, 3:4, 5:4, 9:8, 4:5 |
google/nano-banana-pro | auto, 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16 |
google/nano-banana-2 | auto, 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16, 4:1, 1:4, 8:1, 1:8 |
bytedance-seed/seedream-4.5 | 1:1, 16:9, 9:16, 4:3, 3:4, 4:5, 5:4, 3:2, 2:3 |
Is this the same as expanding or uncropping an image?
No. An image model generates the whole picture again from the reference and your prompt rather than extending the original pixels, so faces, lettering, and small details can change. Compare every result with the original before you use it, and describe what belongs in the new space rather than leaving it to the model.
Generating new images at a chosen ratio or a custom pixel size from the start is covered in AI image generation API aspect ratios.
What are the limits?
- A text-to-image-only model, whose
input_referencesdescriptor is{"min": 0, "max": 0}, rejects the original. - Each completed image is billed at the model's catalog rate, and a failed generation is not billed.
- Results are Sume-hosted, signed URLs. Download the versions you keep.
- A ratio is not a pixel size. To reach exact pixels afterwards, see upscale an image to an exact pixel size.
- This is for stills. To change a video's shape, see convert a landscape video to vertical.
Sources
Related posts
More in Media tools
- AI image for print: pixel sizes for 300 DPI prints
A 300 DPI print needs 300 pixels per inch of print. Generate an AI image at the largest size a model allows, then upscale it up to 4x with Sume.
- AI wallpaper generator: 4K desktop and phone wallpapers
Generate a wallpaper at your screen's pixel size. On Sume, ChatGPT Image 2.5 takes an exact 3840 × 2160 for 4K and near-exact phone sizes to crop.
- AI thumbnail generator for YouTube: 3840×2160 from a prompt
YouTube recommends 3840×2160 thumbnails at 16:9. ChatGPT Image 2.5 on Sume takes that exact size, from a prompt or with your photo as a reference.
- Prime Video ad specs: Amazon's streaming TV video rules
Prime Video ads need 16:9 at 1920x1080 or more, 15 Mbps or more of video, AAC of 192 kbps or more on 2+ channels, and 15, 30, 45 or 60 s in the US.
Written by Sume