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

# Wan 2.7 Pro Image to Image API

> Wan 2.7 Pro image editing with higher quality output.

[← Wan](https://docs.creatify.ai/api-documentation/ai-generation/models/wan.md)

**Model name:** `wan2.7-image/pro/image-to-image`\
**Generation type:** `image_to_image`\
**Endpoint:** [`POST /api/asset_generator/`](https://docs.creatify.ai/api-reference/ai-generation/post-ai-generation)

## Pricing

**1.0** credits per output.

Prices are per output. When a request asks for several outputs, the charge is this price times the number of outputs.

## Quick start

The example uses sample media from our CDN. Swap in publicly accessible URLs for your own files.

```bash cURL theme={null}
curl --request POST \
  --url https://api.creatify.ai/api/asset_generator/ \
  --header 'Content-Type: application/json' \
  --header 'X-API-ID: your-api-id' \
  --header 'X-API-KEY: your-api-key' \
  --data '{
    "model_name": "wan2.7-image/pro/image-to-image",
    "input_params": {
      "prompt": "Place her in a bright café with soft morning light.",
      "image_urls": [
        "https://d35ghwdno3nak3.cloudfront.net/tutorial/avatar-aurora/recommendation-4.jpg"
      ]
    }
  }'
```

```python Python theme={null}
import requests

response = requests.post(
    "https://api.creatify.ai/api/asset_generator/",
    headers={"X-API-ID": "your-api-id", "X-API-KEY": "your-api-key"},
    json={
        "model_name": "wan2.7-image/pro/image-to-image",
        "input_params": {
            "prompt": "Place her in a bright café with soft morning light.",
            "image_urls": [
                "https://d35ghwdno3nak3.cloudfront.net/tutorial/avatar-aurora/recommendation-4.jpg"
            ]
        },
    },
)
print(response.json()["id"])
```

## Input parameters

Send these fields in `input_params`.

**prompt** `string` *required*

Describe the edit or transformation to apply to the image.

Minimum characters: `1`.
Maximum characters: `5000`.

**image\_urls** `string[]` *required*

Input images to edit. Supports JPEG, PNG, BMP, WEBP. 240–8000px, max 20MB each.

Minimum items: `1`.
Maximum items: `9`.

**resolution** `string` (default: 2K)

Resolution of the generated image. Capped at 2K for image editing.

Allowed values: `"1K"`, `"2K"`.

**num\_images** `integer` (default: 1)

Number of images to generate.

Minimum: `1`.
Maximum: `4`.

**seed** `integer`

Random seed for reproducibility.

Minimum: `0`.
Maximum: `2147483647`.

> [accordion] Complete JSON schema
>
> ```json theme={null}
> {
>   "$schema": "http://json-schema.org/draft-07/schema#",
>   "required": [
>     "prompt",
>     "image_urls"
>   ],
>   "properties": {
>     "prompt": {
>       "type": "string",
>       "title": "Prompt",
>       "minLength": 1,
>       "maxLength": 5000,
>       "description": "Describe the edit or transformation to apply to the image."
>     },
>     "image_urls": {
>       "type": "array",
>       "items": {
>         "type": "string"
>       },
>       "title": "Image URLs",
>       "maxItems": 9,
>       "minItems": 1,
>       "description": "Input images to edit. Supports JPEG, PNG, BMP, WEBP. 240–8000px, max 20MB each.",
>       "max_file_size": 20971520,
>       "min_width": 240,
>       "max_width": 8000,
>       "min_height": 240,
>       "max_height": 8000
>     },
>     "resolution": {
>       "enum": [
>         "1K",
>         "2K"
>       ],
>       "type": "string",
>       "title": "Resolution",
>       "default": "2K",
>       "description": "Resolution of the generated image. Capped at 2K for image editing.",
>       "x-advance-settings": true
>     },
>     "num_images": {
>       "type": "integer",
>       "title": "Number of Images",
>       "default": 1,
>       "maximum": 4,
>       "minimum": 1,
>       "x-ui-name": "output_nums",
>       "description": "Number of images to generate."
>     },
>     "seed": {
>       "type": "integer",
>       "minimum": 0,
>       "maximum": 2147483647,
>       "title": "Seed",
>       "description": "Random seed for reproducibility.",
>       "x-advance-settings": true
>     }
>   }
> }
> ```

## Response

The request returns the task with `status: "initializing"`. Poll [GET /api/asset\_generator/\{id}/](https://docs.creatify.ai/api-reference/ai-generation/get-ai-generation-.md) until `status` is `done` or `failed`, or pass a `webhook_url` to be notified. A finished task lists its files in `assets` and the credits it charged in `credits_used`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.