Retour aux modèles
API activeQwen Image
API activeQwen ImageQwen Image 3
qwen-image-3High-fidelity text-to-image and image-to-image generation with strong typography, layout, and multilingual prompt following.
Présentation du modèle
- Endpoint
- /api/v1/images/generations
- Coût en crédits
- 10 credits / image
- Latence habituelle
- 20-60 sec
- Entrée et sortie
- Text, up to 3 images → PNG or JPEG
Capacités
- 1K and 2K output
- Text and image conditioning
- Prompt expansion
- Deterministic seeds
Paramètres de requête
| Paramètre | Type | Exigence | Description |
|---|---|---|---|
| model | string | Requis | Model identifier. Par défaut: qwen-image-3 |
| prompt | string | Requis | Generation prompt, up to 800 characters. |
| image_urls | string[] | Facultatif | Up to three public image URLs for image-to-image generation. |
| aspect_ratio | string | Facultatif | Output aspect ratio. Par défaut: 16:9 |
| resolution | 1K | 2K | Facultatif | Output resolution tier. Par défaut: 1K |
| output_format | png | jpeg | Facultatif | Generated file format. Par défaut: png |
| seed | integer | Facultatif | Integer from 0 to 2147483647. Par défaut: 1 |
Exemple de requête
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"
}'L'endpoint de génération est asynchrone. Interrogez GET /api/v1/tasks/ avec la même clé Bearer.