Назад к моделям
Активный APIQwen Image Tools
Активный APIQwen Image ToolsQwen Layered
qwen-layeredDecompose 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
Параметры запроса
| Параметр | Тип | Обязательность | Описание |
|---|---|---|---|
| model | string | Обязательно | Model identifier. По умолчанию: qwen-layered |
| image | string | Обязательно | Public source image URL. |
| prompt | string | Обязательно | Description of the desired layer separation. |
| num_layers | integer | Необязательно | Number of layers from 1 to 8. По умолчанию: 4 |
| size | string | Необязательно | 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-ключом.