Retour aux modèles
API activeQwen Image
API activeQwen ImageQwen Image 2512
qwen-image-2512Cost-efficient image generation route for production batches, concept exploration, and image-editing pipelines.
Présentation du modèle
- Endpoint
- /api/v1/images/generations
- Coût en crédits
- 5 credits / image
- Latence habituelle
- 15-45 sec
- Entrée et sortie
- Text or images → PNG, JPEG, WebP
Capacités
- Low per-image cost
- Text-to-image
- Multi-image editing
- Flexible pixel sizes
Paramètres de requête
| Paramètre | Type | Exigence | Description |
|---|---|---|---|
| model | string | Requis | Model identifier. Par défaut: qwen-image-2512 |
| prompt | string | Requis | Generation or edit prompt. |
| images | string[] | Facultatif | Source image URLs for editing. |
| size | string | Facultatif | Pixel dimensions using width*height. Par défaut: 1024*1024 |
| output_format | png | jpeg | webp | Facultatif | Generated file format. Par défaut: jpeg |
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-2512",
"prompt": "Minimal packaging design for a botanical sparkling water brand",
"size": "1024*1024",
"output_format": "jpeg"
}'L'endpoint de génération est asynchrone. Interrogez GET /api/v1/tasks/ avec la même clé Bearer.