Nami Qwen I2I Spicy

nami-qwen-i2i-spicy

使用自然语言指令编辑参考图片,并尽量保留未要求修改的内容。

示例

Nami Qwen I2I Spicy example 1

参数

名称类型默认约束说明
image *参考图片image_uploadimage/*上传图片或提供可访问的图片 URL。
prompt *编辑指令textarea
seed随机种子number≥ 0 · step 1可选整数种子;留空则随机生成。

输出字段

字段类型说明
imagesarray<string>Generated image URLs

API

通过统一 REST API 调用本模型;在 API Keys 页获取密钥。

cURL
# 1) Submit — returns { "task_uuid": "..." }
curl -X POST "https://www.namifusion.com/api/v1/marketplace/run/nami-qwen-i2i-spicy" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "image": "https://example.com/input.jpg",
    "prompt": "A cinematic portrait, dramatic rim light, shallow depth of field"
  }
}'

# 2) Poll until status is "completed", then read the output URLs
curl "https://www.namifusion.com/api/v1/marketplace/run/tasks/TASK_UUID" \
  -H "Authorization: Bearer YOUR_API_KEY"
Python
import time, requests

API_KEY = "YOUR_API_KEY"
HEADERS = {"Authorization": f"Bearer {API_KEY}"}

# 1) Submit
resp = requests.post(
    "https://www.namifusion.com/api/v1/marketplace/run/nami-qwen-i2i-spicy",
    headers=HEADERS,
    json={
        "input": {
            "image": "https://example.com/input.jpg",
            "prompt": "A cinematic portrait, dramatic rim light, shallow depth of field"
        }
    },
)
resp.raise_for_status()  # 401/402/429/5xx stop here instead of polling a bad task
task = resp.json()

# 2) Poll until a terminal state (completed / failed / cancelled).
#    This model is allowed up to 300s server-side.
deadline = time.time() + 360
while task.get("status") not in ("completed", "failed", "cancelled"):
    if time.time() > deadline:
        raise TimeoutError(f"still {task.get('status')} — keep the task_uuid and poll later")
    time.sleep(3)
    poll = requests.get(f"https://www.namifusion.com/api/v1/marketplace/run/tasks/{task['task_uuid']}", headers=HEADERS)
    poll.raise_for_status()
    task = poll.json()

print(task["status"], task.get("output"))
JavaScript
const API_KEY = "YOUR_API_KEY";
const HEADERS = { Authorization: `Bearer ${API_KEY}` };

// 1) Submit
const resp = await fetch("https://www.namifusion.com/api/v1/marketplace/run/nami-qwen-i2i-spicy", {
  method: "POST",
  headers: { ...HEADERS, "Content-Type": "application/json" },
  body: JSON.stringify({
    "input": {
      "image": "https://example.com/input.jpg",
      "prompt": "A cinematic portrait, dramatic rim light, shallow depth of field"
    }
  }),
});
if (!resp.ok) throw new Error(`submit failed: ${resp.status} ${await resp.text()}`);
let task = await resp.json();

// 2) Poll until a terminal state (completed / failed / cancelled).
//    This model is allowed up to 300s server-side.
const deadline = Date.now() + 360 * 1000;
while (!["completed", "failed", "cancelled"].includes(task.status)) {
  if (Date.now() > deadline) throw new Error(`still ${task.status} — keep the task_uuid and poll later`);
  await new Promise((r) => setTimeout(r, 3000));
  const poll = await fetch(`https://www.namifusion.com/api/v1/marketplace/run/tasks/${task.task_uuid}`, { headers: HEADERS });
  if (!poll.ok) throw new Error(`poll failed: ${poll.status}`);
  task = await poll.json();
}

console.log(task.status, task.output);

文档

Nami Qwen I2I Spicy

使用自然语言指令编辑一张参考图片。结果通过 images 数组返回。

参数

  • image(必填):上传图片或提供可访问的图片 URL。
  • prompt(必填):描述需要进行的修改。
  • seed(可选):整数种子;留空则随机生成。

计费

每次编辑 4 积分。

相关模型

Nano Banana 图像编辑
Image to ImageGoogle

Nano Banana 图像编辑

高性价比智能修图。 无需蒙版即可实现物体替换与风格迁移,极速响应,成本低廉。

$0.040 / 每次
Nano Banana Pro 图像编辑
Image to ImageGoogle

Nano Banana Pro 图像编辑

4K 语义级修图。基于自然语言修改现有图像,支持智能光影融合与图像内多语言文字编辑。

$0.140 / 每次
Nano Banana 2 图像编辑
Image to ImageGoogle

Nano Banana 2 图像编辑

4K 语义级修图。基于自然语言修改现有图像,支持智能光影融合与图像内多语言文字编辑。

$0.070 / 每次
Seedream V5.0 Pro Edit 图片编辑与生成 API
Image to ImageDoubao

Seedream V5.0 Pro Edit 图片编辑与生成 API

ByteDance 推出的 Seedream V5.0 Pro Edit 可基于单张图片或多参考图进行图片编辑与生成,最多支持 10 张参考图片,支持宽高比选择以及 1K / 2K 输出档位。开箱即用的 REST 推理 API,性能出色,无冷启动,价格实惠。

$0.050 / 每次
Seedream 5.0 Lite Edit Sequential
Image to ImageDoubao

Seedream 5.0 Lite Edit Sequential

Seedream 5.0 Lite Edit Sequential支持多图编辑,同时锁定角色和物体在不同画面中的一致性。它可以检测主要主体,保持连贯性,并进行受控编辑,支持最高4K输出。提供即用型REST推理API,性能最佳,无冷启动,价格实惠。

$0.040 / 每次
Seedream 5.0 Edit
Image to ImageDoubao

Seedream 5.0 Edit

Seedream 5.0 Lite Edit 是一款先进的图片编辑模型,可保留参考图片中的面部特征、光线和色调。支持高保真编辑,具备专业质量、出色的提示词响应能力,并支持最高 4K 分辨率。提供即用型 REST 推理 API,性能卓越,无冷启动,价格实惠。

$0.040 / 每次
Seedream 4.5 Edit Sequential
Image to ImageDoubao

Seedream 4.5 Edit Sequential

Seedream 4.5 Edit Sequential 可进行多图编辑,同时锁定角色和物体在不同画面中的一致性。它能够检测主要主体,保持连贯性,并进行受控编辑,支持最高 4K 输出。提供即用型 REST 推理 API,性能最佳,无冷启动,价格实惠。

$0.040 / 每次
Seedream 4.5 Edit
Image to ImageDoubao

Seedream 4.5 Edit

Seedream 4.5 Edit 保留参考图片中的面部特征、光影和色调,提供专业的高保真编辑,支持最高 4K 分辨率,并对提示词有很强的响应能力。即开即用的 REST 推理 API,性能最佳,无冷启动,价格实惠。

$0.040 / 每次