All models
Alibaba
Image
Available
Wan 2.7 Image
Based on wan/2-7-image, image generation and editing are achieved.
Text to Image
From 60 credits (≈ ₹60.00) per request.
Parameters
| Parameter | Type | Description |
|---|---|---|
promptRequired |
string | Prompt for image generation or editing. This field supports both Chinese and English, with a maximum length of 5000 characters. max length 5000 |
input_urls |
array<string> | (Optional) Array of input image URLs. |
aspect_ratio |
string | (Optional) Output aspect ratio when no image input is provided. one of: "1:1", "16:9", "4:3", "21:9", "3:4", "9:16", "8:1", "1:8" |
enable_sequential |
boolean | Whether to enable sequential/group image mode. Default is false. default false |
n |
integer | Number of images to generate. Range is 1-4 when `enable_sequential=false` (default: 4); range is 1-12 when `enable_sequential=true` (default: 12). |
resolution |
string | Output resolution: 1K or 2K (default 2K). For 4K, use wan/2-7-image-pro. one of: "1K", "2K" · default "2K" |
thinking_mode |
boolean | Whether to enable thinking mode. Only available when `enable_sequential=false` and `input_urls` is empty; it is disabled in other cases. default false |
color_palette |
array<object> | (Optional) Custom color theme. Only available when `enable_sequential=false`. Requires 3-10 colors, 8 recommended. |
bbox_list |
array<array> | (Optional) Interactive editing bounding box areas. The outer list length should match `input_urls`; maximum 2 boxes per image; single box format is `[x1, y1, x2, y2]`. |
watermark |
boolean | Whether to add watermark. default false |
seed |
integer | Optional. Omit for a random seed. min 0 · max 2147483647 |
nsfw_checker |
boolean | Defaults to false. When false, no additional content filtering is applied and results are returned directly by the model. |
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": "wan-2.7-image",
"input": {
"prompt": "A cinematic shot of a lighthouse at dawn",
"aspect_ratio": "1:1",
"enable_sequential": false,
"resolution": "2K",
"thinking_mode": false,
"watermark": 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": "wan-2.7-image",
"input": {
"prompt": "A cinematic shot of a lighthouse at dawn",
"aspect_ratio": "1:1",
"enable_sequential": False,
"resolution": "2K",
"thinking_mode": False,
"watermark": 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": "wan-2.7-image",
"input": {
"prompt": "A cinematic shot of a lighthouse at dawn",
"aspect_ratio": "1:1",
"enable_sequential": false,
"resolution": "2K",
"thinking_mode": false,
"watermark": 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": "wan-2.7-image",
"input": {
"prompt": "A cinematic shot of a lighthouse at dawn",
"aspect_ratio": "1:1",
"enable_sequential": false,
"resolution": "2K",
"thinking_mode": false,
"watermark": false
}
}
Response
{
"id": "6f1c…",
"object": "task",
"model": "wan-2.7-image",
"status": "succeeded",
"output": {
"files": [
{
"url": "https://…signed…",
"mime": "…",
"size": 0
}
]
},
"estimated_cost": "…",
"charged": "…"
}