모델 개요
- 엔드포인트
- /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/를 폴링하세요.
