Spiral gives your agent every tool with one account. Browse the tools →

falImageAvailable now

Wan

fal-ai/wan/v2.2-a14b/image-to-image

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.

Pricing

$0.065 per image.

Limits

Runs
In the background
Returns
image
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

FieldKindDefaultDescription
image_url requiredURL or file—

URL of the input image.

prompt requiredtext—

The text prompt to guide image generation.

strengthnumber
0 to 1
0.5

Denoising strength. 1.0 = fully remake; 0.0 = preserve original.

negative_prompttext

Negative prompt for video generation.

seednumber (whole)—

Random seed for reproducibility. If None, a random seed is chosen.

aspect_ratioone 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_stepsnumber (whole)
2 to 40
27

Number of inference steps for sampling. Higher values give better quality but take longer.

enable_prompt_expansiontrue or falsefalse

Whether to enable prompt expansion. This will use a large language model to expand the prompt with additional details while maintaining the original meaning.

accelerationone 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_scalenumber
1 to 10
3.5

Classifier-free guidance scale.

guidance_scale_2number
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.

shiftnumber
1 to 10
2
image_sizeJSON—
image_formatone of
png, jpeg
jpeg

The format of the output image.

Same request in code

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"
    }
  }'

Frequently asked questions

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.