モデル概要
- エンドポイント
- /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/ をポーリングしてください。
