# Alibaba Wan 2.5 Image to Image API

> Alibaba Wan 2.5 image-to-image model that edits one or more input images from a natural-language instruction, with selectable output aspect ratio.

Source: https://www.sandbase.ai/models/alibaba/wan/2.5/image-to-image
API reference: https://www.sandbase.ai/models/alibaba/wan/2.5/image-to-image/docs

## Facts

- Provider: Alibaba
- Type: Image model
- Model ID: `alibaba/wan/2.5/image-to-image`
- Price: From $0.05 per run
- Capabilities: image to image
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Unified Run API: `POST https://api.sandbase.ai/v1/run`

```bash
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "alibaba/wan/2.5/image-to-image",
  "images": [
    "https://static.sandbase.ai/examples/alibaba/wan/2.5/image-edit/input_images_0.png"
  ],
  "prompt": "Reimagine the scene under a raging thunderstorm at night: lightning forks across the sky, illuminating the samurai in stark flashes of white light."
}'
```

The response returns a run id; poll `GET https://api.sandbase.ai/v1/run/{id}` until the status is `completed` or `failed`.

## FAQ

### How do I call Alibaba Wan 2.5 Image to Image through SandBase?

Create a SandBase API key, then send requests with the model ID "alibaba/wan/2.5/image-to-image" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### Do I need a separate Alibaba account?

No. One SandBase API key and balance gives you access to Alibaba Wan 2.5 Image to Image and the other models in the catalog; you do not need to sign up with Alibaba separately.

## README

### Wan 2.5 Image to Image

Wan 2.5 image editing: send one or more pictures and describe the change.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Text instruction. |
| `images` | image URL[], required | — | Images to edit or combine, Image 1, Image 2, … |
| `aspect_ratio` | `21:9` / `16:9` / `3:2` / `4:3` / `5:4` / `1:1` / `4:5` / `3:4` / `2:3` / `9:16` | — | Omit to follow the first input image. |
| `seed` | integer | random | Fix it to compare prompt changes. |

#### Billing

$0.05 per output image. Input images are not metered.

| Request | Price |
|---|---|
| One image | $0.05 |

Failed runs are not charged.

#### Prompting

- State the change and what must stay the same.

#### Limits

- One output image per request. Wan 2.7 is newer and cheaper.

#### Also on SandBase

Other Wan 2.5 endpoints: `alibaba/wan/2.5/text-to-video`, `alibaba/wan/2.5/image-to-video`, `alibaba/wan/2.5/text-to-image`, `alibaba/wan/2.7/image-to-image` (newer).
