Volver a modelos
API activaQwen Image Tools
API activaQwen Image ToolsQwen Layered
qwen-layeredDecompose a source image into editable semantic layers for design, compositing, and asset-production workflows.
Resumen del modelo
- Endpoint
- /api/v1/images/generations
- Coste en créditos
- 10 credits / layer
- Latencia habitual
- 30-90 sec
- Entrada y salida
- Image and instruction → Layer images
Capacidades
- 1-8 semantic layers
- Prompt-guided separation
- Transparent assets
- Seed control
Parámetros de solicitud
| Parámetro | Tipo | Requisito | Descripción |
|---|---|---|---|
| model | string | Obligatorio | Model identifier. Predeterminado: qwen-layered |
| image | string | Obligatorio | Public source image URL. |
| prompt | string | Obligatorio | Description of the desired layer separation. |
| num_layers | integer | Opcional | Number of layers from 1 to 8. Predeterminado: 4 |
| size | string | Opcional | Output pixel dimensions. Predeterminado: 1024*1024 |
Ejemplo de solicitud
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"
}'El endpoint de generación es asíncrono. Consulta GET /api/v1/tasks/ con la misma clave Bearer.