Zurück zu den Modellen
Live-APIQwen Image
Live-APIQwen ImageQwen2 Image
qwen2-imageReliable Qwen image route for text generation and image editing workflows with broad prompt and aspect-ratio support.
Modellübersicht
- Endpunkt
- /api/v1/images/generations
- Credit-Kosten
- 10 credits / image
- Typische Latenz
- 20-60 sec
- Ein- und Ausgabe
- Text or image → PNG or JPEG
Funktionen
- Text-to-image
- Image editing
- Long prompts
- Common aspect ratios
Anfrageparameter
| Parameter | Typ | Anforderung | Beschreibung |
|---|---|---|---|
| model | string | Erforderlich | Model identifier. Standard: qwen2-image |
| prompt | string | Erforderlich | Generation or edit instruction, up to 5000 characters. |
| image_urls | string[] | Optional | Source image URLs. Supplying an image activates edit mode. |
| aspect_ratio | string | Optional | Output aspect ratio. Standard: 16:9 |
| output_format | png | jpeg | Optional | Generated file format. Standard: png |
Anfragebeispiel
curl https://qwenapi.org/api/v1/images/generations \
-H "Authorization: Bearer $QWEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen2-image",
"prompt": "A clean architectural model photographed in a daylight studio",
"aspect_ratio": "4:3",
"output_format": "png"
}'Der Generierungsendpunkt ist asynchron. Rufen Sie GET /api/v1/tasks/ mit demselben Bearer-Schlüssel ab.