Modellere dön
Canlı APIQwen Image

Qwen2 Image

qwen2-image

Reliable 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

ParametreTürGereklilikAçıklama
modelstringZorunluModel identifier. Varsayılan: qwen2-image
promptstringZorunluGeneration or edit instruction, up to 5000 characters.
image_urlsstring[]İsteğe bağlıSource image URLs. Supplying an image activates edit mode.
aspect_ratiostringİsteğe bağlıOutput aspect ratio. Varsayılan: 16:9
output_formatpng | 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.