How to generate variations of an image with AI
Send the image as a reference, say what may change and what must stay, and set n for several results per call. How to do it on Sume's Image API.

To generate variations of an image, give an AI image model the original as a reference, say in the prompt what may change and what must stay, and ask for several results at once. Each result is a new generation, so every run gives a fresh set; to explore further, feed your favorite back in as the next reference.
On Sume, that is POST /v1/images with the original in input_references and n set to the number of variations. The details below come from the Image API docs and the catalog that GET /v1/images/models serves, read on 2026-09-27.
How do I get several variations in one call?
Send the original as a reference and set n. The docs allow up to 10 images per request and say per-model ceilings are lower; on ChatGPT Image 2.5, ChatGPT Image 2, and the two Nano Banana models, the ceiling is 4 today.
aspect_ratio: "auto"keeps the original's shape on models that list it, and leaving the field out is not the same asauto.- Today an
noutside the model's range is refused with400 invalid_request. - Four variations are billed as four completed images. A failed generation is not billed.
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": "A variation of the referenced poster: keep the layout, the bicycle, and the flat illustration style; change the color palette and make the season autumn.",
"aspect_ratio": "auto",
"n": 4,
"input_references": [
{ "type": "image_url", "image_url": { "url": "https://example.com/poster.png" } }
]
}'What should the prompt say?
The prompt is your control over how far a variation strays, so state both halves:
- Keep: the subject, layout, style, palette, or wording that must not change.
- Change: one or two things per run, such as colors, background, props, season, camera angle, or mood.
- Close copies: "Recreate this image with small changes to the background only."
- Wider exploration: name a new style or setting outright, and keep only the subject.
How many variations can each model return?
Seedream 4.5 is the exception today: its catalog lists n up to 4, but with a reference it returns one image per call, so send one call per variation. For the models that edit from a reference:
| Model id | Variations per call with a reference | Lists `"auto"` |
|---|---|---|
openai/gpt-image-2.5 | 1–4 | Yes |
openai/gpt-image-2 | 1–4 | Yes |
google/nano-banana-pro | 1–4 | Yes |
google/nano-banana-2 | 1–4 | Yes |
bytedance-seed/seedream-4.5 | 1 | No |
Can I control how different the variations are?
Only through the prompt. The request has no strength, similarity, or variation field, and in current code the body schema is closed: an unknown field such as strength fails the request with 400 invalid_request instead of being ignored.
seed, described as "Seed for deterministic generation", is in the schema but not served in v1, so sending it returns 400 unsupported_parameter. Keep the files you like, because a rerun makes a fresh set. More on seeds: AI image seed number.
What are the limits?
- The original must be at a public HTTPS URL, and a text-to-image-only model rejects references.
- Slow configurations, a large
namong them, are the most likely to answer202with a job instead of200with the images. PollGET /v1/jobs/{id}/status, then fetchGET /v1/jobs/{id}/result. - Result URLs are Sume-hosted and signed. Download the variations you keep.
- For several images from a text prompt alone, see 4K AI image generation: resolution, quality, and image count; for reference mechanics, Image generation API with reference images.
Sources
Related posts
More in Models
- Image to music AI: generate a track from a photo
Image to music AI uses a picture as an input for a track. On Sume, send image_url with the text prompt to the Music Router; the price stays the same.
- Image to video vs reference to video: what's the difference?
Image-to-video makes your picture the first frame; reference-to-video uses pictures, clips, or audio as guidance. Which to use, and which one wins.
- Text to speech in Korean: send Hangul text with language ko
For Korean text to speech, send the script in Hangul with the language set to ko. How Sume's TTS API reads Korean, checks the voice, and bills it.
- How to make a picture move with AI: pick the motion
Give the picture to an image-to-video model as its first frame and describe the motion. Motion control copies a dance; lip sync makes a face talk.
Written by Sume