Zurück zu den Modellen
Live-APIQwen Image

Qwen2 Image

qwen2-image

Reliable 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

ParameterTypAnforderungBeschreibung
modelstringErforderlichModel identifier. Standard: qwen2-image
promptstringErforderlichGeneration or edit instruction, up to 5000 characters.
image_urlsstring[]OptionalSource image URLs. Supplying an image activates edit mode.
aspect_ratiostringOptionalOutput aspect ratio. Standard: 16:9
output_formatpng | jpegOptionalGenerated 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.