Generate the highest quality AI images using Qwen Image 2.0 Pro with best-in-class text rendering, semantic adherence, and realistic textures. Supports text-to-image and image editing via reference images.

Model

alibaba/qwen-image-2.0-pro

Parameters

ParameterTypeRequiredDescription
promptstringYesText description of the image (max 800 chars)
aspect_ratiostringNo1:1, 16:9, 9:16, 4:3, 3:4 (default: 1:1)
image_urlsarrayNoInput image URLs for editing or multi-image fusion
negative_promptstringNoWhat to avoid in the image (max 500 chars)
prompt_extendbooleanNoSmart prompt rewriting (default: true)
seedintegerNoSeed for reproducibility

Example - Text-to-Image

curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "alibaba/qwen-image-2.0-pro",
    "input": {
      "prompt": "A cinematic portrait of a fox in autumn forest, golden hour lighting",
      "aspect_ratio": "16:9"
    }
  }'

Example - Image Editing

curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "alibaba/qwen-image-2.0-pro",
    "input": {
      "prompt": "Change the background to a beach at sunset",
      "image_urls": ["https://example.com/photo.jpg"],
      "aspect_ratio": "4:3"
    }
  }'

Example - Multi-Image Fusion

curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "alibaba/qwen-image-2.0-pro",
    "input": {
      "prompt": "The girl from Image 1 wears the dress from Image 2",
      "image_urls": ["https://example.com/girl.jpg", "https://example.com/dress.jpg"]
    }
  }'

Response

{
  "code": 200,
  "success": true,
  "data": {
    "task_id": "abc123def456",
    "status": "pending"
  }
}