Modellere dön
Canlı APIQwen Image
Canlı APIQwen ImageQwen2 Image
qwen2-imageReliable Qwen image route for text generation and image editing workflows with broad prompt and aspect-ratio support.
Model genel bakışı
- Uç nokta
- /api/v1/images/generations
- Kredi maliyeti
- 10 credits / image
- Tipik gecikme
- 20-60 sec
- Girdi ve çıktı
- Text or image → PNG or JPEG
Yetenekler
- Text-to-image
- Image editing
- Long prompts
- Common aspect ratios
İstek parametreleri
| Parametre | Tür | Gereklilik | Açıklama |
|---|---|---|---|
| model | string | Zorunlu | Model identifier. Varsayılan: qwen2-image |
| prompt | string | Zorunlu | Generation or edit instruction, up to 5000 characters. |
| image_urls | string[] | İsteğe bağlı | Source image URLs. Supplying an image activates edit mode. |
| aspect_ratio | string | İsteğe bağlı | Output aspect ratio. Varsayılan: 16:9 |
| output_format | png | jpeg | İsteğe bağlı | Generated file format. Varsayılan: png |
İstek örneği
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"
}'Oluşturma uç noktası eşzamansızdır. Aynı Bearer anahtarıyla GET /api/v1/tasks/ adresini sorgulayın.