Generate AI images using Wan 2.6 Image. Automatically selects T2I or editing mode based on whether image_urls is provided. Supports style transfer with 1–4 reference images.

Model

alibaba/wan-2.6-image

Parameters

ParameterTypeRequiredDescription
promptstringYesText description of the image (max 2000 chars)
aspect_ratiostringNo1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9 (default: 1:1)
image_urlsarrayNoOmit for T2I. 1–4 images for editing/style transfer
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/wan-2.6-image",
    "input": {
      "prompt": "A cozy reading nook with warm lighting"
    }
  }'

Example - Style Transfer

curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "alibaba/wan-2.6-image",
    "input": {
      "prompt": "Generate a tomato stir-fry in the style of this image",
      "image_urls": ["https://example.com/style.png"]
    }
  }'

Response

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