1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
const axios = require('axios');
const fs = require('fs');
const path = require('path');
async function toB64(imgPath) {
const data = fs.readFileSync(path.resolve(imgPath));
return Buffer.from(data).toString('base64');
}
const api_key = "YOUR API-KEY";
const url = "https://api.segmind.com/v1/qwen-image-edit-plus";
const data = {
"image": "toB64('https://segmind-resources.s3.amazonaws.com/input/c9e0ba47-d061-44fd-91e0-c9c55eed07fb-img2-qime.jpg')",
"image_2": "toB64('https://segmind-resources.s3.amazonaws.com/input/5bacb90c-f157-4dec-9ea8-7a02052206a0-image1-ip.png')",
"image_3": "toB64('null')",
"prompt": "The woman from image 2 is sitting on the sofa, smiling and waving, in the scene from image 1",
"aspect_ratio": "match_input_image",
"go_fast": true,
"seed": 760941192,
"image_format": "webp",
"quality": 90,
"base64": false
};
(async function() {
try {
const response = await axios.post(url, data, { headers: { 'x-api-key': api_key } });
console.log(response.data);
} catch (error) {
console.error('Error:', error.response.data);
}
})();Input Image URL or file reference.
Input Image URL or file reference.
Input Image URL or file reference.
Describes what to edit in the image
Defines frame aspect ratio.
Allowed values:
Activates faster image generation. Disable for quality over speed.
Seed stabilizes output. Try -1 for randomness.
min : -1,
max : 999999999999999
Choose format for image storage. 'jpeg' for compact files, 'png' for clarity.
Allowed values:
Sets image detail level. Use 80 for web content, 100 for high-quality prints.
min : 10,
max : 100
Outputs base64. True if image as text needed.
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.
Edited by Segmind Team on October 24, 2025.
Qwen Image Edit Plus is an image editing model that is powered by advanced AI and designed for complex multi-image manipulation. It works at a professional level when it comes to blending up to three images effortlessly, while simultaneously preserving essential and fine details: facial features, product textures, and text consistency. It also has a built-in ControlNet integration that enables users to precisely control every single image's transformation using its integrated tools, including depth, edge, and keypoint mapping.
You can work with up to three images simultaneously for seamless blending and transformations.
Qwen Image Edit Plus's native ControlNet integration and high consistency preservation make it a sophisticated model when compared to its rivals. It also offers precise control over transformations while maintaining image integrity.
Professional-level results can be produced using high-resolution input images, setting quality to 90 or above, disabling "go_fast" mode for crucial projects, and providing detailed and specific prompts.
The model supports PNG, JPEG, and WebP outputs, with WebP recommended for optimal quality-to-size ratio.
Yes, use the seed parameter (-1 to 999999999999999) to either ensure consistency (fixed number) or generate variations (-1).
Yes, Qwen Image Edit Plus natively supports ControlNet features for depth, edge, and keypoint mapping without any manual integrations.