Retour aux modèles
API activeQwen Image Tools
API activeQwen Image ToolsQwen Layered
qwen-layeredDecompose a source image into editable semantic layers for design, compositing, and asset-production workflows.
Présentation du modèle
- Endpoint
- /api/v1/images/generations
- Coût en crédits
- 10 credits / layer
- Latence habituelle
- 30-90 sec
- Entrée et sortie
- Image and instruction → Layer images
Capacités
- 1-8 semantic layers
- Prompt-guided separation
- Transparent assets
- Seed control
Paramètres de requête
| Paramètre | Type | Exigence | Description |
|---|---|---|---|
| model | string | Requis | Model identifier. Par défaut: qwen-layered |
| image | string | Requis | Public source image URL. |
| prompt | string | Requis | Description of the desired layer separation. |
| num_layers | integer | Facultatif | Number of layers from 1 to 8. Par défaut: 4 |
| size | string | Facultatif | Output pixel dimensions. Par défaut: 1024*1024 |
Exemple de requête
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"
}'L'endpoint de génération est asynchrone. Interrogez GET /api/v1/tasks/ avec la même clé Bearer.