返回模型目录
在线 APIQwen Image Tools

Qwen Layered

qwen-layered

Decompose a source image into editable semantic layers for design, compositing, and asset-production workflows.

模型概览
端点
/api/v1/images/generations
积分成本
10 credits / layer
典型耗时
30-90 sec
输入与输出
Image and instruction → Layer images

能力

  • 1-8 semantic layers
  • Prompt-guided separation
  • Transparent assets
  • Seed control

请求参数

参数类型要求说明
modelstring必填Model identifier. 默认值: qwen-layered
imagestring必填Public source image URL.
promptstring必填Description of the desired layer separation.
num_layersinteger可选Number of layers from 1 to 8. 默认值: 4
sizestring可选Output pixel dimensions. 默认值: 1024*1024

请求示例

curl https://qwenapi.org/api/v1/images/generations \
  -H "Authorization: Bearer $QWEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "qwen-layered",
  "image": "https://example.com/poster.png",
  "prompt": "Separate the subject, typography, foreground objects, and background",
  "num_layers": 4,
  "size": "1024*1024"
}'

生成端点为异步任务。请使用同一个 Bearer 密钥轮询 GET /api/v1/tasks/。