> ## Documentation Index
> Fetch the complete documentation index at: https://docs.unifically.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Wan 2.5

> Image generation with text-to-image and editing support

Generate AI images using Wan 2.5 Image. Automatically selects T2I or editing mode based on whether `image_urls` is provided. Supports 1–3 reference images for editing.

## Model

```
alibaba/wan-2.5-image
```

## Parameters

| Parameter         | Type    | Required | Description                                                        |
| ----------------- | ------- | -------- | ------------------------------------------------------------------ |
| `prompt`          | string  | Yes      | Text description of the image (max 2000 chars)                     |
| `aspect_ratio`    | string  | No       | `1:1`, `2:3`, `3:2`, `3:4`, `4:3`, `9:16`, `16:9` (default: `1:1`) |
| `image_urls`      | array   | No       | Omit for T2I. 1–3 images for editing                               |
| `negative_prompt` | string  | No       | What to avoid in the image (max 500 chars)                         |
| `prompt_extend`   | boolean | No       | Smart prompt rewriting (default: `true`)                           |
| `seed`            | integer | No       | Seed for reproducibility                                           |

## Example - Text-to-Image

```bash theme={null}
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.5-image",
    "input": {
      "prompt": "A flower shop with a beautiful wooden door"
    }
  }'
```

## Example - Image Editing

```bash theme={null}
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.5-image",
    "input": {
      "prompt": "Change the floral dress to a vintage lace dress",
      "image_urls": ["https://example.com/photo.jpg"]
    }
  }'
```

## Response

```json theme={null}
{
  "code": 200,
  "success": true,
  "data": {
    "task_id": "abc123def456",
    "status": "pending"
  }
}
```
