Voltar aos modelos
API ativaQwen Image Tools
API ativaQwen Image ToolsQwen Layered
qwen-layeredDecompose a source image into editable semantic layers for design, compositing, and asset-production workflows.
Visão geral do modelo
- Endpoint
- /api/v1/images/generations
- Custo em créditos
- 10 credits / layer
- Latência típica
- 30-90 sec
- Entrada e saída
- Image and instruction → Layer images
Recursos
- 1-8 semantic layers
- Prompt-guided separation
- Transparent assets
- Seed control
Parâmetros da solicitação
| Parâmetro | Tipo | Requisito | Descrição |
|---|---|---|---|
| model | string | Obrigatório | Model identifier. Padrão: qwen-layered |
| image | string | Obrigatório | Public source image URL. |
| prompt | string | Obrigatório | Description of the desired layer separation. |
| num_layers | integer | Opcional | Number of layers from 1 to 8. Padrão: 4 |
| size | string | Opcional | Output pixel dimensions. Padrão: 1024*1024 |
Exemplo de solicitação
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"
}'O endpoint de geração é assíncrono. Consulte GET /api/v1/tasks/ com a mesma chave Bearer.