Nexus
All models
ByteDance Image Available

Seedream 5.0 Pro Edit

Single- or multi-reference image editing and generation at 1K–2K.

Image Editing Image to Image

From 5.3 credits (≈ ₹5.30) per request.

Parameters

ParameterTypeDescription
promptRequired string Describe the edit.
max length 4000
imageRequired string Reference image to edit (URL or upload).
max length 2048 · format: uri
image_2 string Additional reference image 2 (optional).
max length 2048 · format: uri
image_3 string Additional reference image 3 (optional).
max length 2048 · format: uri
image_4 string Additional reference image 4 (optional).
max length 2048 · format: uri
resolution string —
one of: "1k", "1.5k", "2k"
output_format string —
one of: "jpeg", "png"
prompt_optimization_mode string —
one of: "standard", "fast" · default "standard"

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": "seedream-5.0-pro-edit",
    "input": {
        "prompt": "A cinematic shot of a lighthouse at dawn",
        "image": "https://example.com/input.png",
        "resolution": "1k",
        "output_format": "jpeg",
        "prompt_optimization_mode": "standard"
    },
    "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": "seedream-5.0-pro-edit",
        "input": {
            "prompt": "A cinematic shot of a lighthouse at dawn",
            "image": "https://example.com/input.png",
            "resolution": "1k",
            "output_format": "jpeg",
            "prompt_optimization_mode": "standard",
        },
        "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": "seedream-5.0-pro-edit",
      "input": {
          "prompt": "A cinematic shot of a lighthouse at dawn",
          "image": "https://example.com/input.png",
          "resolution": "1k",
          "output_format": "jpeg",
          "prompt_optimization_mode": "standard"
      },
      "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": "seedream-5.0-pro-edit",
    "input": {
        "prompt": "A cinematic shot of a lighthouse at dawn",
        "image": "https://example.com/input.png",
        "resolution": "1k",
        "output_format": "jpeg",
        "prompt_optimization_mode": "standard"
    }
}

Response

{
    "id": "6f1c…",
    "object": "task",
    "model": "seedream-5.0-pro-edit",
    "status": "succeeded",
    "output": {
        "files": [
            {
                "url": "https://…signed…",
                "mime": "…",
                "size": 0
            }
        ]
    },
    "estimated_cost": "…",
    "charged": "…"
}