Back to tutorials
Image generationBeginner

Add Reference Images to Show What You Mean

โœจ What will we play with?

Have a composition you love, or a sketch you've already drawn? Bring a reference image along! Say clearly what to keep and what to change, and your next version will get closer to what you imagined.

๐Ÿš€ Follow along, step by step!

This time we'll use a photo of a puppy sitting on grass, change the background to a sunny beach, and ask in the prompt to keep its fur color, floppy ears, and front-facing sitting pose.

These steps use the desktop version ofGAZAI Image generation, with screenshots taken in a 1440 ร— 1000 window. We're using Nano Banana 2 here, and the button shows 30 points per generation.

Tip:Go by the points shown on the "Generate" button when you use it. The right side may still show earlier output, so check the "Reference image" area in the middle to see what you're using this time.

1. Open Image generation and get to know the layout

After logging in, open the Image generation page. On desktop, the model is on the left, the prompt and reference image are in the middle, and output and history are on the right.

Before you add anything, the middle shows a hint picture about uploading and drawing. That isn't the reference photo used in this guide.

image

2. Choose "Nano Banana 2"

Click the model card on the left, choose "Nano Banana 2" in the model window, then click "Select" in the bottom-right corner. We're using this model to reference the original image and change the background.

image

3. Expand the reference image sketch pad

In the "Reference image" area in the middle, click "Expand sketch pad". A drawing toolbar appears when it opens. We'll add a photo first and won't use the pen this time.

Click "Upload image" in the toolbar on the left to open the image selection window.

image

4. Choose a puppy photo

The window shows images from your own library, and the search box looks through their prompts. Type "dog" to see whether you already have a suitable photo. If nothing comes up, like here, the photo isn't in your library yet.

Click "Upload Image" in the top-right corner of the window and choose a cat or dog photo from your computer. We're using a golden-brown puppy with a white chest, sitting on grass.

image

5. Check the selected image, then click "Confirm"

Check that the bottom of the window shows "1/1 selected", and that the selected thumbnail is the puppy on the grass. If everything looks right, click "Confirm".

Tip:The photo you uploaded is selected automatically, so go by the selected thumbnail at the bottom.

image

6. Check the full original image on the sketch pad

Make sure the original puppy photo appears on the sketch pad: golden-brown fur, white chest, floppy ears, a front-facing sitting pose, and a green grass background.

We won't draw on the sketch pad this time. After checking, click the close button in the top-right corner to return to the main desktop screen. The "Reference image" area in the middle keeps this photo.

image

7. Say clearly what to keep and what to change, then check the points

Replace the prompt with the text below. First say which puppy features to keep, then say how to change the background:

Keep the puppy's golden-brown fur, white chest, floppy ears, and front-facing sitting pose. Only change the grass to a sunny beach. The puppy sits on the sand with blue sky, white clouds, and the sea behind it. Keep the realistic photo style, and don't add people or text.

If the prompt field is too narrow, click the expand icon in its top-right corner to see all of it. Before sending, check the reference photo in the middle, the prompt, and the points on the "Generate" button at the bottom. It shows 30 points in this guide.

The image below shows these areas. The output on the right isn't reference material.

image

8. Click "Generate" and wait for the latest result

Click "Generate" at the bottom once. While sending, the button briefly shows "Please wait". Once the task is created, you'll see a thumbnail in progress under "History" on the right.

While you wait, the right side may show earlier output or a waiting image. When the latest thumbnail finishes, check this result.

9. See the beach puppy under "Output"

When generation finishes, click the latest thumbnail in "History" to see the large image under "Output" on the right.

This result has a sandy beach, sea, blue sky, and white clouds. The puppy is still golden-brown with floppy ears and a front-facing pose, and no people were added.

image

10. Click "Details" to compare the prompt and reference image

Click "Details" in the top-right corner of the output to see the result, the prompt used, and the original reference thumbnail together, and confirm that you used the puppy on the grass.

A reference image influences the result, but it doesn't guarantee every detail will match. In this result, the white forehead stripe, white chest fur, and face details all changed. If these markings must stay the same, describe them more clearly, then check the next result.

When you're happy with it, click "Download" at the bottom of the window to save the image. To make changes, close the details, edit the prompt, check the points, and generate again.

image

๐Ÿ› ๏ธ Stuck? Start here

  • Can't find an option:Options a model doesn't support may not appear. Try another model.
  • Upload failed:Check the file format, size, and your network connection first.
  • Materials and results:Only use materials you have the rights to use, and always review the results yourself.

We use cookies or similar technologies for technical purposes and, with your consent, for other purposes as specified in the privacy policy.