모델 개요
- 엔드포인트
- /api/v1/images/generations
- 크레딧 비용
- 10 credits / image
- 일반적인 처리 시간
- 20-60 sec
- 입력 및 출력
- Text, up to 3 images → PNG or JPEG
기능
- 1K and 2K output
- Text and image conditioning
- Prompt expansion
- Deterministic seeds
요청 파라미터
| 파라미터 | 유형 | 요구 여부 | 설명 |
|---|---|---|---|
| model | string | 필수 | Model identifier. 기본값: qwen-image-3 |
| prompt | string | 필수 | Generation prompt, up to 800 characters. |
| image_urls | string[] | 선택 | Up to three public image URLs for image-to-image generation. |
| aspect_ratio | string | 선택 | Output aspect ratio. 기본값: 16:9 |
| resolution | 1K | 2K | 선택 | Output resolution tier. 기본값: 1K |
| output_format | png | jpeg | 선택 | Generated file format. 기본값: png |
| seed | integer | 선택 | Integer from 0 to 2147483647. 기본값: 1 |
요청 예시
curl https://qwenapi.org/api/v1/images/generations \
-H "Authorization: Bearer $QWEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen-image-3",
"prompt": "Editorial product photo of a translucent blue speaker on a steel desk, soft morning light",
"aspect_ratio": "16:9",
"resolution": "1K",
"output_format": "png"
}'생성 엔드포인트는 비동기입니다. 동일한 Bearer 키로 GET /api/v1/tasks/를 폴링하세요.
