모델 목록으로 돌아가기
라이브 APIQwen Image

Qwen2 Image

qwen2-image

Reliable Qwen image route for text generation and image editing workflows with broad prompt and aspect-ratio support.

모델 개요
엔드포인트
/api/v1/images/generations
크레딧 비용
10 credits / image
일반적인 처리 시간
20-60 sec
입력 및 출력
Text or image → PNG or JPEG

기능

  • Text-to-image
  • Image editing
  • Long prompts
  • Common aspect ratios

요청 파라미터

파라미터유형요구 여부설명
modelstring필수Model identifier. 기본값: qwen2-image
promptstring필수Generation or edit instruction, up to 5000 characters.
image_urlsstring[]선택Source image URLs. Supplying an image activates edit mode.
aspect_ratiostring선택Output aspect ratio. 기본값: 16:9
output_formatpng | jpeg선택Generated file format. 기본값: png

요청 예시

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"
}'

생성 엔드포인트는 비동기입니다. 동일한 Bearer 키로 GET /api/v1/tasks/를 폴링하세요.