モデル一覧に戻る
稼働中 APIQwen Image Tools

Qwen Layered

qwen-layered

Decompose 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

リクエストパラメータ

パラメータ必須区分説明
modelstring必須Model identifier. デフォルト: qwen-layered
imagestring必須Public source image URL.
promptstring必須Description of the desired layer separation.
num_layersinteger任意Number of layers from 1 to 8. デフォルト: 4
sizestring任意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"
}'

生成エンドポイントは非同期です。同じ Bearer キーで GET /api/v1/tasks/ をポーリングしてください。