qwen-image-edit-spicy

qwen-image-edit-spicy

通过文本指令精确编辑图片,可添加、移除或修改画面元素,也支持风格迁移和背景替换,适合照片修饰与视觉设计。

示例

qwen-image-edit-spicy 示例 1

参数

名称类型默认约束说明
image *输入图片image_upload—image/* · 0–1 items待编辑图片,支持 URL 或 base64 数据。
prompt *编辑指令textarea—≤ 5000 chars描述希望对图片进行的修改。
seed随机种子number—≥ 0 · step 1用于复现结果的可选随机种子;留空时使用随机值。

输出字段

字段类型说明
imagesarray<string>

API

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

cURL
# 1) Submit — returns { "task_uuid": "..." }
curl -X POST "https://www.namifusion.com/api/v1/marketplace/run/qwen-image-edit-spicy" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "image": [
      "https://assets-public.namifusion.com/marketplace/images/2026-06-12/638e1ee18ac7.jpeg"
    ],
    "prompt": "Replace the background with a clean modern studio, add soft directional lighting, and preserve the subject identity and fine details."
  }
}'

# 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/qwen-image-edit-spicy",
    headers=HEADERS,
    json={
        "input": {
            "image": [
                "https://assets-public.namifusion.com/marketplace/images/2026-06-12/638e1ee18ac7.jpeg"
            ],
            "prompt": "Replace the background with a clean modern studio, add soft directional lighting, and preserve the subject identity and fine details."
        }
    },
)
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 180s server-side.
deadline = time.time() + 240
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/qwen-image-edit-spicy", {
  method: "POST",
  headers: { ...HEADERS, "Content-Type": "application/json" },
  body: JSON.stringify({
    "input": {
      "image": [
        "https://assets-public.namifusion.com/marketplace/images/2026-06-12/638e1ee18ac7.jpeg"
      ],
      "prompt": "Replace the background with a clean modern studio, add soft directional lighting, and preserve the subject identity and fine details."
    }
  }),
});
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 180s server-side.
const deadline = Date.now() + 240 * 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);

文档

qwen-image-edit-spicy

通过提示词精确编辑源图片,同时保留不应变化的关键细节。

qwen-image-edit-spicy 是一款面向单图编辑的模型,可根据自然语言指令对一张输入图片进行转换。它适合背景替换、视觉风格调整、光线变化、对象级修改和创意版本制作。参数结构简洁直接:提供图片、说明希望进行的编辑,并可选填随机种子,以便在优化提示词时生成更便于比较的结果。

核心特性

  • 指令驱动编辑:根据明确的文字要求判断源图片中哪些内容需要修改。
  • 关键内容保留:可在提示词中指定保留人物身份、构图、品牌标识、材质或其他重要细节。
  • 多种创意调整:单次请求可处理背景、灯光、色彩、氛围与风格变化。
  • 输入结构简单:仅需一张图片和一条编辑指令,便于快速测试与接入。
  • 支持 URL 与 base64:Marketplace 上传控件可接收在线图片或 base64 图片数据。
  • 随机种子控制:可选种子有助于在修改提示词时获得便于横向比较的变体。

技术规格

项目说明
任务类型图片编辑 / 图片转图片
必填输入image、prompt
图片输入一张图片 URL 或 base64 数据
提示词长度最多 5,000 个字符
可选输入seed,从 0 开始的整数
输出生成图片 URL
典型流程源图片加一条具体编辑指令

示例提示词

  • 将背景替换为干净的现代摄影棚,增加柔和的定向灯光,同时保留人物身份、姿态和服装。
  • 保持商品形状、Logo 和材质不变,将其放在深色反光台面上,使用高级商业摄影灯光。
  • 将场景调整为冷色电影感的雨夜,同时保留所有人物和原始构图。

计费

计费项价格
每张编辑图片4 积分

以上数值原样反映现有 Marketplace 计费配置,本次文档修复不会修改价格。

最佳应用场景

  • 电商图片背景清理与商品展示优化。
  • 基于已确认源图制作广告和社交媒体创意变体。
  • 人像补光、氛围调整与可控风格转换。
  • 需要保留指定视觉元素的快速设计迭代。

使用建议

提示词应同时说明“需要改变什么”和“必须保留什么”,并具体指出人物身份、姿态、Logo、材质、镜头角度和背景等属性。不要在一次指令中叠加过多互不相关的修改;相比一个过载的长提示词,按目标拆分为几次聚焦编辑通常更可控。

相关模型

xAI Grok Imagine Image v2.0 图片编辑
图生图X Ai

xAI Grok Imagine Image v2.0 图片编辑

xAI Grok Imagine Image V2.0 Edit 可根据文本提示词对输入图片进行编辑,并支持可配置的分辨率和质量,适用于精细图片编辑、视觉优化、创意变体、社交内容、营销素材和生产工作流。提供开箱即用的 REST 推理 API,性能出色,无冷启动,价格实惠。

起 $0.090 / 每次
Qwen Image 3.0 Pro Edit|快速图片编辑
图生图Qwen Image 3.0 Pro

Qwen Image 3.0 Pro Edit|快速图片编辑

Qwen Image 3.0 Pro Edit 是一款专业级图片编辑模型,具备出色的画质和高级指令理解能力。最高支持 2k。提供开箱即用的 REST inference API,性能优异,无冷启动,价格实惠。

起 $0.078 / 每次
OpenAI GPT Image 2.5 Sunburst 图像编辑
图生图OpenAI

OpenAI GPT Image 2.5 Sunburst 图像编辑

使用最多 16 张参考图片完成高保真、精确的图像编辑。

起 $0.220 / 每次
OpenAI GPT Image 2.5 Flare 图像编辑
图生图OpenAI

OpenAI GPT Image 2.5 Flare 图像编辑

使用自然语言指令和最多 16 张参考图片进行快速、均衡的图像编辑。

起 $0.220 / 每次
图生图
图生图NamiFusion

图片换头

将照片中的人物头部替换为参考图中的头部。先上传目标照片,再上传头部参考图。

起 $0.220 / 每次
Nano Banana 图像编辑
图生图Google

Nano Banana 图像编辑

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

起 $0.038 / 每次
Nano Banana Pro 图像编辑
图生图Google

Nano Banana Pro 图像编辑

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

起 $0.140 / 每次
Nano Banana 2 图像编辑
图生图Google

Nano Banana 2 图像编辑

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

起 $0.070 / 每次