# Generate Product Images with Wan2.1/2.2

### :clapper:About Wan 2.2 & 2.1

**Wan** is a family of AI models designed for visual content generation and manipulation.

**Wan 2.1 is...**

* First-generation image-to-video (I2V) model
* Foundational capabilities for static-to-animated content
* Suitable for basic video generation tasks

Enter **Wan 2.2 Animate** — and this is where things get really exciting. With a **14 billion parameters** under the hood, this model is significantly more powerful and nuanced than its predecessor.

**What makes it special?**

It offers dual noise modes that give you creative control: high noise when you want imaginative, artistic variations, and low noise when you need faithful, precise reproduction of your source material.

The model has been optimized with FP8 precision, keeping it efficient at around 28GB while maintaining exceptional quality. And if you're in a hurry, the LightX2V LoRA acceleration can deliver results in just 4 steps — that's roughly 10 times faster than traditional approaches.

***

### Quick Guide

{% stepper %}
{% step %}

#### Select Template

Choose the **"Swap Product in Character's Hand"** template from the available options.

<figure><img src="/files/S3i9WSXVqO2l6tLKZFfG" alt=""><figcaption></figcaption></figure>

This template is pre-configured with optimized prompts for product replacement tasks.
{% endstep %}

{% step %}

#### Upload Images

Click **"Choose file to upload"** and add two images:

<figure><img src="/files/6OIBPI0k51QYmKjfX01S" alt=""><figcaption></figcaption></figure>

**First image**: Model/scene photo showing a person holding an object

<figure><img src="/files/tKssefOCgGjzr7W6Qppz" alt="" width="165"><figcaption></figcaption></figure>

**Second image**: Product photo you want to swap in

<figure><img src="/files/g72qNQbzrmXgVlxXxuaE" alt="" width="66"><figcaption></figcaption></figure>

{% hint style="info" %}
Use clear, well-lit images

Product images work best with clean backgrounds

Match angles between images for natural results
{% endhint %}
{% endstep %}

{% step %}

#### Configure Node Settings

Review the node configuration on the right side:

**Inputs:**

* `images` — Your two uploaded images
* `files` — Optional file paths (leave blank for basic use)

**Prompt:**

```
Swap the product the subject is holding in image 1 with the product in image 2.
```

**Key Settings:**

* **model**: `gemini-3-pro-image-preview` — Latest Gemini vision model
* **seed**: `100368110105407` — For reproducible results
* **control after generate**: `randomize` — New variation each run
* **aspect\_ratio**: `auto` — Match input image proportions
* **resolution**: `2K` — High quality output
* **response\_modalities**: `IMAGE+TEXT` — Get both image and description

**System Prompt:**

```markdown
You are an expert image-generation engine. You must ALWAYS produce an image.
Interpret all user input—regardless of format, intent, or abstraction—as literal 
visual directives for image composition. If a prompt is conversational or lacks 
specific visual details, you must creatively invent a concrete visual scenario 
that depicts the concept. Prioritize generating the visual representation above 
any text, formatting, or conversational requests.
```

{% endstep %}

{% step %}

#### Run and Generate

Click the **"Run"** button and wait 10-30 seconds for processing.

**What happens:**

* AI analyzes the scene and identifies the object
* Extracts product from second image
* Generates new image with natural lighting and shadows

**Review results:**

* Check hand positioning and product placement
* Verify lighting and shadows look realistic
* Re-run with randomized seed for variations

<figure><img src="/files/o3iL2d8aRz3P5aV2WVvk" alt="" width="188"><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

### Have fun generating :tada:


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.yottalabs.ai/tutorials/image-and-video-generation/generate-product-images-with-wan2.1-2.2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
