# Wan

Edit and enhance images with Wan from fal through one Spiral API key. It runs in the background and returns images. Pay as you go, with no subscription.

- Provider: fal
- Category: Image
- Runs: In the background
- Returns: image
- Tool id: `fal` / `fal-ai/wan/v2.2-a14b/image-to-image`
- Page: https://spiral.ai/tools/fal/fal-ai/wan/v2.2-a14b/image-to-image

## Pricing

$0.065 per image.

## Limits

- Longest queue wait: 1 hour
- Run deadline: 30 minutes
- Longest run, end to end: 225 minutes
- Largest inline input: 1 MB
- Largest input file: 2 GB
- Largest output: 5 GB

## Input

| Field | Kind | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `image_url` (required) | URL or file |  | — | URL of the input image. |
| `prompt` (required) | text |  | — | The text prompt to guide image generation. |
| `strength` | number | 0 to 1 | 0.5 | Denoising strength. 1.0 = fully remake; 0.0 = preserve original. |
| `negative_prompt` | text |  |  | Negative prompt for video generation. |
| `seed` | number (whole) |  | — | Random seed for reproducibility. If None, a random seed is chosen. |
| `aspect_ratio` | one of | auto, 16:9, 9:16, 1:1 | auto | Aspect ratio of the generated image. If 'auto', the aspect ratio will be determined automatically based on the input image. |
| `num_inference_steps` | number (whole) | 2 to 40 | 27 | Number of inference steps for sampling. Higher values give better quality but take longer. |
| `enable_prompt_expansion` | true or false |  | false | Whether to enable prompt expansion. This will use a large language model to expand the prompt with additional details while maintaining the original meaning. |
| `acceleration` | one of | none, regular | regular | Acceleration level to use. The more acceleration, the faster the generation, but with lower quality. The recommended value is 'regular'. |
| `guidance_scale` | number | 1 to 10 | 3.5 | Classifier-free guidance scale. |
| `guidance_scale_2` | number | 1 to 10 | 4 | Guidance scale for the second stage of the model. This is used to control the adherence to the prompt in the second stage of the model. |
| `shift` | number | 1 to 10 | 2 |  |
| `image_size` | JSON |  | — |  |
| `image_format` | one of | png, jpeg | jpeg | The format of the output image. |

## Example

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "fal",
    "model": "fal-ai/wan/v2.2-a14b/image-to-image",
    "input": {
      "image_url": "https://storage.googleapis.com/falserverless/example_inputs/wan-image-to-image-input.png",
      "prompt": "A cinematic shot of an ancient city at sunset, intricate stone buildings, warm golden light"
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=fal&model=fal-ai%2Fwan%2Fv2.2-a14b%2Fimage-to-image

## Common questions

### Wan

**How much does Wan cost?**

$0.065 per image. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

**How do I use Wan through an API?**

Send `POST /v1/runs` with `"provider": "fal"`, `"model": "fal-ai/wan/v2.2-a14b/image-to-image"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

**Do I need an account with fal to use Wan?**

No. Spiral runs it on its own fal account and charges your Spiral balance.

**Can my AI agent use Wan?**

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.

