Retour aux modèles
API activeQwen Image Tools

Qwen Layered

qwen-layered

Decompose 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ètreTypeExigenceDescription
modelstringRequisModel identifier. Par défaut: qwen-layered
imagestringRequisPublic source image URL.
promptstringRequisDescription of the desired layer separation.
num_layersintegerFacultatifNumber of layers from 1 to 8. Par défaut: 4
sizestringFacultatifOutput 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.