All models
Alibaba
Image
Available
Qwen 3 Image to Image
Use this endpoint to create a new image-to-image generation task. Upload an input image and provide a prompt describing the desired changes.
Image to Image
From 60 credits (≈ ₹60.00) per request.
Parameters
| Parameter | Type | Description |
|---|---|---|
image_urlsRequired |
array<string> | Input image URL array. Upload images and provide their URLs rather than the file content. Supports up to 3 images. Supported file types: `image/jpeg`, `image/png`, `image/webp`, `image/bmp`, and `image/gif`,`image/tiff`. Maximum file size: 10 MB per image. |
promptRequired |
string | The positive prompt that describes the image content, style, and composition you want to generate or edit. Both Chinese and English are supported. max length 5000 |
resolution |
string | The output image resolution. one of: "1K", "2K" · default "1K" |
image_size |
string | The output image size. one of: "1:1", "3:2", "2:3", "4:3", "3:4", "16:9", "9:16", "21:9" · default "16:9" |
output_format |
string | Output format: png or jpeg. Set this field explicitly. one of: "png", "jpeg" |
prompt_extend |
boolean | Whether to enable intelligent prompt rewriting. Default: true (recommended). When enabled, the model optimizes the positive prompt, which significantly improves results for simple descriptions. default true |
negative_prompt |
string | The negative prompt that describes content you do not want to appear in the image. max length 5000 |
seed |
integer | Random seed, 0–2147483647. If omitted, a random seed is used. min 0 · max 2147483647 |
nsfw_checker |
boolean | Whether to enable content filtering. Optional. Defaults to false. When set to false, content filtering is disabled and all results are returned directly by the model. Note: Content filtering cannot guarantee that all inappropriate content will be detected. If the filtering results do not meet your requirements, you must implement additional content moderation measures. default false |
What you get back
Files arrive in output.files[] as private links that expire, with their type and size.
Use it from your code
# 1. Create the task
curl https://nexus.promptscenes.in/api/v1/tasks \
-H "Authorization: Bearer $NEXUS_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "qwen-3-image-to-image",
"input": {
"image_urls": null,
"prompt": "A cinematic shot of a lighthouse at dawn",
"resolution": "1K",
"image_size": "16:9",
"output_format": "png",
"prompt_extend": true,
"nsfw_checker": false
},
"callback_url": "https://your-app.com/webhooks/nexus"
}'
# 2. Poll for the result
curl https://nexus.promptscenes.in/api/v1/tasks/TASK_ID \
-H "Authorization: Bearer $NEXUS_API_KEY"
import os, time, uuid, requests
API = "https://nexus.promptscenes.in/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['NEXUS_API_KEY']}"}
task = requests.post(
f"{API}/tasks",
headers={**HEADERS, "Idempotency-Key": str(uuid.uuid4())},
json={
"model": "qwen-3-image-to-image",
"input": {
"image_urls": None,
"prompt": "A cinematic shot of a lighthouse at dawn",
"resolution": "1K",
"image_size": "16:9",
"output_format": "png",
"prompt_extend": True,
"nsfw_checker": False,
},
"callback_url": "https://your-app.com/webhooks/nexus",
},
).json()
while task["status"] not in ("succeeded", "failed", "cancelled"):
time.sleep(3)
task = requests.get(f"{API}/tasks/{task['id']}", headers=HEADERS).json()
print(task["status"], task.get("output"))
const API = "https://nexus.promptscenes.in/api/v1";
const headers = {
Authorization: `Bearer ${process.env.NEXUS_API_KEY}`,
"Content-Type": "application/json",
};
let task = await fetch(`${API}/tasks`, {
method: "POST",
headers: { ...headers, "Idempotency-Key": crypto.randomUUID() },
body: JSON.stringify({
"model": "qwen-3-image-to-image",
"input": {
"image_urls": null,
"prompt": "A cinematic shot of a lighthouse at dawn",
"resolution": "1K",
"image_size": "16:9",
"output_format": "png",
"prompt_extend": true,
"nsfw_checker": false
},
"callback_url": "https://your-app.com/webhooks/nexus"
}),
}).then((r) => r.json());
while (!["succeeded", "failed", "cancelled"].includes(task.status)) {
await new Promise((r) => setTimeout(r, 3000));
task = await fetch(`${API}/tasks/${task.id}`, { headers }).then((r) => r.json());
}
console.log(task.status, task.output);
Request
{
"model": "qwen-3-image-to-image",
"input": {
"image_urls": null,
"prompt": "A cinematic shot of a lighthouse at dawn",
"resolution": "1K",
"image_size": "16:9",
"output_format": "png",
"prompt_extend": true,
"nsfw_checker": false
}
}
Response
{
"id": "6f1c…",
"object": "task",
"model": "qwen-3-image-to-image",
"status": "succeeded",
"output": {
"files": [
{
"url": "https://…signed…",
"mime": "…",
"size": 0
}
]
},
"estimated_cost": "…",
"charged": "…"
}