Zurück zu den Modellen
Live-APIQwen Image
Live-APIQwen ImageQwen Image 2512
qwen-image-2512Cost-efficient image generation route for production batches, concept exploration, and image-editing pipelines.
Modellübersicht
- Endpunkt
- /api/v1/images/generations
- Credit-Kosten
- 5 credits / image
- Typische Latenz
- 15-45 sec
- Ein- und Ausgabe
- Text or images → PNG, JPEG, WebP
Funktionen
- Low per-image cost
- Text-to-image
- Multi-image editing
- Flexible pixel sizes
Anfrageparameter
| Parameter | Typ | Anforderung | Beschreibung |
|---|---|---|---|
| model | string | Erforderlich | Model identifier. Standard: qwen-image-2512 |
| prompt | string | Erforderlich | Generation or edit prompt. |
| images | string[] | Optional | Source image URLs for editing. |
| size | string | Optional | Pixel dimensions using width*height. Standard: 1024*1024 |
| output_format | png | jpeg | webp | Optional | Generated file format. Standard: jpeg |
Anfragebeispiel
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"
}'Der Generierungsendpunkt ist asynchron. Rufen Sie GET /api/v1/tasks/ mit demselben Bearer-Schlüssel ab.