モデル概要
- エンドポイント
- /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
リクエストパラメータ
| パラメータ | 型 | 必須区分 | 説明 |
|---|---|---|---|
| model | string | 必須 | Model identifier. デフォルト: qwen-layered |
| image | string | 必須 | Public source image URL. |
| prompt | string | 必須 | Description of the desired layer separation. |
| num_layers | integer | 任意 | Number of layers from 1 to 8. デフォルト: 4 |
| size | string | 任意 | 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/ をポーリングしてください。
