typearray
value typefile
{
"aspect_ratio": "match_input_image",
"go_fast": true,
"images": [
"https://replicate.delivery/pbxt/NZlAtMEqfwdlmpvHPcXOq7Ack9VB4V3LcMMOUfv8ywa5AYOy/woman.png",
"https://replicate.delivery/pbxt/NZlAtNbDRZO8f5bYrqAnkpZwPteg3YuMerVAaIytnGWtfDx8/labubu.png"
],
"prompt": "have her hold the doll"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_OCb**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run lucataco/multi-image-qwen-edit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
aspect_ratio: "match_input_image",
go_fast: true,
images: ["https://replicate.delivery/pbxt/NZlAtMEqfwdlmpvHPcXOq7Ack9VB4V3LcMMOUfv8ywa5AYOy/woman.png","https://replicate.delivery/pbxt/NZlAtNbDRZO8f5bYrqAnkpZwPteg3YuMerVAaIytnGWtfDx8/labubu.png"],
prompt: "have her hold the doll"
};
const output = await replicate.run("lucataco/multi-image-qwen-edit", { input });
// To access the file URL:
console.log(output.url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_OCb**********************************
This is your API token. Keep it to yourself.
import replicate
Run lucataco/multi-image-qwen-edit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"lucataco/multi-image-qwen-edit",
input={
"aspect_ratio": "match_input_image",
"go_fast": True,
"images": ["https://replicate.delivery/pbxt/NZlAtMEqfwdlmpvHPcXOq7Ack9VB4V3LcMMOUfv8ywa5AYOy/woman.png","https://replicate.delivery/pbxt/NZlAtNbDRZO8f5bYrqAnkpZwPteg3YuMerVAaIytnGWtfDx8/labubu.png"],
"prompt": "have her hold the doll"
}
)
# To access the file URL:
print(output.url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_OCb**********************************
This is your API token. Keep it to yourself.
Run lucataco/multi-image-qwen-edit using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"input": {
"aspect_ratio": "match_input_image",
"go_fast": true,
"images": ["https://replicate.delivery/pbxt/NZlAtMEqfwdlmpvHPcXOq7Ack9VB4V3LcMMOUfv8ywa5AYOy/woman.png","https://replicate.delivery/pbxt/NZlAtNbDRZO8f5bYrqAnkpZwPteg3YuMerVAaIytnGWtfDx8/labubu.png"],
"prompt": "have her hold the doll"
}
}' \
https://api.replicate.com/v1/models/lucataco/multi-image-qwen-edit/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "df9z15h89hrme0crss4raaxxkm",
"model": "lucataco/multi-image-qwen-edit",
"version": "hidden",
"input": {
"aspect_ratio": "match_input_image",
"go_fast": true,
"images": [
"https://replicate.delivery/pbxt/NZlAtMEqfwdlmpvHPcXOq7Ack9VB4V3LcMMOUfv8ywa5AYOy/woman.png",
"https://replicate.delivery/pbxt/NZlAtNbDRZO8f5bYrqAnkpZwPteg3YuMerVAaIytnGWtfDx8/labubu.png"
],
"prompt": "have her hold the doll"
},
"logs": "",
"output": "https://replicate.delivery/xezq/wHgiBoXlsHZsD95XIhrWry5OvPsIjdexP7oe2WfEPmGwKmaqA/out-0.webp",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-08-21T20:19:17.708Z",
"started_at": "2025-08-21T20:19:18.180666Z",
"completed_at": "2025-08-21T20:19:36.828143Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/df9z15h89hrme0crss4raaxxkm/cancel",
"children": "https://api.replicate.com/v1/predictions/df9z15h89hrme0crss4raaxxkm/children",
"get": "https://api.replicate.com/v1/predictions/df9z15h89hrme0crss4raaxxkm",
"root": "https://api.replicate.com/v1/predictions/df9z15h89hrme0crss4raaxxkm",
"stream": "https://stream.replicate.com/v1/files/bcwr-yozmt45yejwsydbmv63cygaoc4p3sjved4o22hdhji2xj34wmepa",
"web": "https://replicate.com/p/df9z15h89hrme0crss4raaxxkm"
},
"metrics": {
"predict_time": 18.647477477,
"total_time": 19.120143
}
}

