AI image edit comes back stretched or recropped: use aspect_ratio auto
Midjourney's editor now preserves the original aspect ratio. On the Sume image API, edits keep the shape of your photo only if you send aspect_ratio auto.

If an AI image edit comes back stretched or with a different shape than your photo, the request probably did not tell the model to match the input. Midjourney's 10/1/26 changelog says its editing function now "preserves the original image's aspect ratio" to prevent unintended stretches. On the Sume image API the same outcome is explicit: set aspect_ratio to "auto" on any call that has input_references.
What the vendor changed
From Midjourney's own changelog.
| Date | Change |
|---|---|
| 10/1/26 | The editing function preserves the original image's aspect ratio, preventing unintended stretches. |
What the Sume docs say
The Image API docs state it directly: on edit and image-to-image calls, prefer aspect_ratio: "auto" to match the reference, and omitting the field is not the same as auto. If you leave it out, the model or a default decides the output shape.
auto is one of the values the aspect ratio field accepts alongside the named ratios such as 1:1, 16:9, 4:5 and 9:21. A model only accepts values its catalog descriptor lists, so check supported_parameters for the model you pinned.
Edit request that keeps the shape
Send the source photo as a public HTTPS reference and ask for auto.
curl -X POST "https://api.sume.com/v1/images" \
-H "Authorization: Bearer $SUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-image-2.5",
"prompt": "Replace the sky with warm sunset light; keep everything else",
"aspect_ratio": "auto",
"input_references": [
{"type": "image_url", "image_url": {"url": "https://example.com/photo.jpg"}}
]
}'When you want a new shape on purpose
Sometimes the point of the edit is a different frame, such as a 4:5 crop for a social post. Then pass the target ratio explicitly instead of auto. The docs note that 4:5 is Instagram portrait (1080x1350), not 4:3.
For an exact pixel size, the docs describe a post step rather than a request field, so plan a resize after generation.
Quick diagnosis
If your edit still looks wrong, check these in order:
- Did the request include
aspect_ratio: "auto", not just omit the field? - Is the reference a public HTTPS URL? Localhost, private-network and non-HTTPS URLs are rejected before submission.
- Does the model list
input_referencesabove zero? A text-only model rejects references.
Why this goes wrong in practice
Most stretched edits come from a pipeline that copied a text-to-image request and added a reference. The old request carried a fixed ratio such as 1:1, so a landscape photo came back square. Or the field was dropped entirely and the default decided. Both look like a model bug and are really a missing instruction.
A quick test is to send the same edit twice, once with auto and once without, and compare dimensions. If the two differ, you have found the cause. Keep the auto version in your edit template and keep the fixed-ratio version in your generate template so the two flows cannot be mixed up.
If your source is portrait and your target is landscape, say so with a named ratio and expect the model to extend or recompose the scene, not just crop it.
Sources
Related posts
More in Use cases
- Music bed under narration: the no-spoken-word clause for Lyria 3.5
To get a music bed that stays out of a voiceover's way, end the Sume music prompt with no vocals, no spoken word, then duck it under the voice in Timeline.
- Score a scene from its still: image_url on Sume music, Lyria 3.5
Pass the accepted scene still as image_url on a Sume music request so the score matches the picture. What the field accepts, what it does not, and the cost.
- Translate text inside an image: one Nano Banana 2 edit per language
Google says Nano Banana 2 can translate and localize text within an image. Loop one edit per language through Sume POST /v1/images and keep the layout fixed.
- Nano Banana Pro 4:5 is not 1080x1350: crop and resize in Python
On Sume, Nano Banana Pro takes 4:5 at about 928x1152, not exact 1080x1350. Resize to Instagram's size locally with Pillow, with the small crop explained.
Written by Sume