Image Editing in Virtual Try-On - Powered by Qwen Image Edit
Change or add clothing using simple prompts to design a look
If you're looking for an API, here is a sample code in NodeJS to help you out.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const axios = require('axios');
const api_key = "YOUR API KEY";
const url = "https://api.segmind.com/workflows/68a49384c49c91c2edbbb6d9-v3";
const data = {
Model_Image: "publicly accessible image link",
Design_details: "the user input string"
};
axios.post(url, data, {
headers: {
'x-api-key': api_key,
'Content-Type': 'application/json'
}
}).then((response) => {
console.log(response.data);
});
1
2
3
4
5
{
"poll_url": "<base_url>/requests/<some_request_id>",
"request_id": "some_request_id",
"status": "QUEUED"
}
You can poll the above link to get the status and output of your request.
1
2
3
{
"Edited_Image": "image in URL Format"
}
Attributes
To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.
Image Editing in Virtual Try-On - Powered by Qwen Image Edit
Last updated: 19 Aug 2025 by The Segmind Team
The latest image editing model from Alibaba has given a new tool to all the creators and developers working on image manipulation tasks. You can now use just a prompt and an input image to edit the image. In this workflow we use this model to help us with Virtual Try-On use cases where you are looking to design a new look on a model, using just prompts.
This workflow requires the user to input an image of a model (the image to be edited) and a simple prompt to edit or add any elements to the design. This helps apps catering to designers as well as apps catering to fashion conscious audience to 'Try' different looks.
An important thing to note here: attire or accessory's image cannot be given as an input as this model take's in just one input image. You can try out SegFit for pixel perfect Virtual Try-Ons.
This workflows generates 480p or 720p videos with just one image of the attire: flat-lay, actual model photo or Mannequin image, no prompts required. Perfect for fashion brands and social media agencies looking to present the designs in an engaging way.
Key Models
- We use Llama 4 Scout, a tiny LLM to look at the image and user's prompt to create the final prompt that is passed out on to the Qwen Edit Model.
- We have the Qwen Image Edit model actually editing the original image directed via Llama's prompt.
Extend this workflow
- Extend to video: You can use the generated image and create a video using Image to models such as Wan 2.2 Image to Video or SeeDance V1 Lite.
- Upscale the image: Use models that can upscale the image to add more details and increase the resolution for use cases that require large resolutions. Some models that can do this well are Bria's Upscaler and their Image enhancement model.
- Use Faceswap to bring back details: Qwen can change subtle features on the face and other parts of the image. If you need the face to be a 100% match, use Segmind Faceswap V4 to bring back the original face.