Назад к моделям
Активный 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"
}'

Генерация асинхронна. Опросите GET /api/v1/tasks/ с тем же Bearer-ключом.