BulkImagen logoBulkImagen

Combine Two Images with AI: One Pair, Then Fifty Different Pairs in One Batch

Combine two images with AI: put the object from one photo into the scene from another, then run dozens of different pairs in one batch. Prompts and results.

Par BulkImagen Team9 min de lecture
Four pairs of printed photos clipped together on an oak table, each pair an armchair on a grey backdrop next to an empty room

To combine two images with AI, you give a model both pictures and one sentence that says what each picture is for: take the chair from this one, put it in the room from that one. Current image models are good at this. A single pair takes a minute in any tool that accepts two reference images.

The trouble starts when you have fifty pairs. Fifty products, each going into its own scene. Fifty faces, each with its own outfit. Fifty logos, each on its own mockup. Now every output needs a different two images, and most tools give you one of two shapes: one chat per pair, or one set of images shared by every output. Neither is "pair 1 with pair 1, pair 2 with pair 2".

This guide covers both halves: how to write the prompt so a single pair comes back right, and how to run many different pairs in one batch with the Groups mode in our batch form. We ran the example while writing it: four armchairs, four rooms, each chair into its own room, on Nano Banana Pro. Everything below is what came back.

Générez vos images en lot

Un prompt par ligne, des centaines d’images, un seul ZIP à télécharger.

Essayer gratuitement

How the model reads two images#

When you send two reference images, the model gets them in order, and that order is the only way your prompt can point at them. So the prompt names them by number and gives each one a job:

  • Image 1 is the thing that must not change. The chair, the product, the face, the logo. Say so, and name the details a person would check first: shape, proportions, material, color.
  • Image 2 is the place, or the thing being added to. The room, the background, the body, the mockup. If it should stay as it is, say that too, including the camera angle. Otherwise the model treats it as a loose suggestion and redraws it.
  • Then say how they meet. Where the object goes, how big it is, what the light does. "Stands on the floor at a realistic size, with a soft shadow that matches the room's light" is the sentence that stops a pasted-on look.

That is the entire prompt we used. It is written for a chair and a room, but the shape works for any pair:

Prompt
Put the armchair from image 1 into the room from image 2. Keep the chair exactly as it is: same shape, proportions, material, color, legs and cushion. Keep the room exactly as it is: same walls, floor, windows, light and camera angle. The chair stands on the floor at a realistic size, with a soft shadow that matches the room's light. No people, no text, no logos.

For one pair, upload the chair photo first and the room photo second, choose Combine images under How to use the references, and generate. Combine images sends every uploaded image along with the prompt as one set, which is exactly right when there is only one set.

Tip

Clean inputs help more than clever wording. Our four chair photos were product shots on a plain grey background, and our four rooms had an empty patch of floor where a chair could go. A cluttered photo gives the model more to keep and more to get wrong.

Why fifty pairs is a different problem#

Here is what each reference mode does when you upload eight images (four chairs, four rooms) and want four results:

Mode What each output receives With 4 chairs + 4 rooms
Per image One reference image, crossed with every prompt line Each output sees a chair or a room, never both
Combine images All uploaded images together Every output sees all eight images and has to guess which chair goes where
Groups Only the images in its own group Output 1 sees chair 1 + room 1, output 2 sees chair 2 + room 2, and so on

Per image is the right mode for one object in many scenes, covered in bulk image-to-image. Combine images is right when every output should use the same set, like a product and the same backdrop every time, as in product photos with consistent backgrounds. Neither one keeps pairs apart. Before Groups, the honest answer was one Combine batch per pair: fifty uploads, fifty submits.

Groups: one row per output image#

Groups turns the reference area into a list. Each row is one output image: that row's images, the shared prompt, and an optional line of its own.

The batch form in Groups mode: a shared prompt at the top, then four groups, each with an armchair photo numbered 1, a room photo numbered 2, and a short placement line

Setting up our four pairs took about a minute:

  1. Upload the first image of every pair. We dropped the four chair photos into Reference images. The order you drop them in becomes the group order.
  2. Choose Groups under How to use the references. Each uploaded photo becomes its own group. To add more pairs later, drop more photos onto the list: every photo dropped there starts a new group.
  3. Add the second image to each group. Drag the room photo onto its row, or click + on the row: Upload new, Choose from library, or pick an image already in the form. Images are numbered in the order they were added, so the chair is 1 and the room is 2, which is what the prompt says.
  4. Write the shared prompt once. The label reads Prompt (used by every group). We pasted the prompt above.
  5. Give a group its own line if it needs one. Each line is added after the shared prompt for that group only. Ours were placement notes:
Prompt
Set it on the rug, angled slightly toward the bookshelves.
Place it near the open doors, facing the sea.
Place it under the steel-framed window.
Place it next to the fig plant.
  1. Pick the model, ratio and resolution, and read the total. Groups multiply with Images per combo: four groups at 1 image each is four images, at 3 each it is twelve. We used Nano Banana Pro, 3:2, 2K: four images, 24 credits.

The same image can sit in several groups. If one logo goes onto twenty different mockups, add the logo to each row from the + menu; it offers the images already in the form, so it is uploaded once. A group can also hold more than two images, for example a face, an outfit and a background. The numbers on the thumbnails are what image 1, image 2 and image 3 mean in the prompt. How many fit in one group depends on the model, listed per model on the models page.

Note

Groups is a feature of the batch form on the website. The public API and the MCP connector accept Text only, Per image and Combine images. Through the API, run one Combine batch per pair. Each image then receives exactly what a group would send: the same two references and the same text. That is how we generated the four images in this post.

What came back#

Four rows, each showing an armchair (image 1), an empty room (image 2), and the result with that chair placed in that room

All four came back on the first try, and every result has the right chair in the right room. Looked at closely:

  • The chairs kept their identity. The green velvet keeps its tapered walnut legs, the rattan keeps its cane back and cream cushion, the leather club chair keeps its rolled arms, the boucle keeps its black cross base.
  • The rooms were barely touched. Bookshelves, window frames, the rug, the abstract print, the fig in its pot: all where they were, from the same camera angle. "Keep the room exactly as it is" did its job.
  • Scale and shadows look right. Each chair sits on the floor with a soft contact shadow in the direction of the room's light.
  • The per-group lines were followed loosely. "On the rug" and "under the window" landed. "Facing the sea" did not: the rattan chair faces into the room. "Next to the fig plant" put the chair in the opposite corner, about a meter away. Placement notes are suggestions to the model, not coordinates.
The green velvet armchair placed on a Persian rug in a wood-paneled library
The rattan armchair standing on whitewashed floorboards between open doors with a view of the sea
The cognac leather club chair beside a large steel-framed window in a concrete loft
The off-white boucle armchair in the corner of a bright white room with sheer curtains and a potted fig

If a placement matters, rerun that one group with a more physical description ("in front of the right-hand door, its back to the room, looking out at the water") rather than rerunning the batch. A miss in one group costs one image.

Checklist for pairs that come back right#

  • Same role, same position, every group. If the chair is image 1 in group 1, it is image 1 in all of them, because the shared prompt says "image 1" once for everyone.
  • Protect both images separately. One sentence for what must not change in image 1, one for image 2. Name the details a viewer would check.
  • Describe the join. Size, contact with the floor, shadow, light. This is what separates "in the room" from "on top of a photo of the room".
  • Keep per-group lines short and concrete. One placement or one change per line. Anything every group needs belongs in the shared prompt.
  • Check each result against its own pair. Look at the object first; the scene is rarely where things go wrong.
  • Rerun single groups, not the batch. A wrong placement is a one-image fix.

The same pattern covers most "put A into B" work: products into lifestyle scenes, artwork onto frames and walls, faces onto illustrated characters, a garment onto a model. For empty rooms specifically, AI virtual staging furnishes the whole room from text rather than placing one piece. For a person who must stay recognizable across many images, read consistent character AI images first.

Groups is in every account's batch form, including the free credits you get at sign-up, so the cheapest test is two or three of your own pairs. When those look right, the next fifty are a matter of dropping photos into rows, which is the reason to do this in a bulk image generator instead of fifty separate chats.

FAQ#

Can I combine two images with AI for free?#

New accounts get free credits at sign-up, enough to try a few pairs. Each output image costs the model's per-image price; Nano Banana Pro at 2K is 6 credits. Current prices for every model are on the pricing page.

Which image should be image 1?#

The one that must not change: the product, the face, the logo. Put it first in every group and say "keep … from image 1 exactly as it is" in the prompt. The model then knows which picture it is allowed to reinterpret.

Can I combine more than two images?#

Yes. A group can hold as many images as the chosen model accepts, and the numbers on the thumbnails tell you how to refer to them in the prompt. Three is common: a face, an outfit and a background.

What is the difference between Groups and Combine images?#

Combine images sends the same set of images to every output. Groups sends each output only the images in its own row. With one pair they produce the same result; with many pairs, only Groups keeps them apart.

Can I use Groups through the API?#

Not as a mode. The API and the MCP connector support Text only, Per image and Combine images. To run many different pairs through the API, submit one Combine batch per pair; each image receives the same input a group would send.

Tous les articlesPar BulkImagen Team

À lire ensuite

Passez à la pratique

Lancez votre premier lot en quelques minutes

Écrivez un prompt par ligne ou importez un CSV, choisissez un modèle, et BulkImagen génère tout le lot en parallèle. Les nouveaux comptes reçoivent des crédits gratuits pour essayer.