# wan-2.7/image-to-video

> WAN 2.7 converts images into videos (480p/720p) with optional audio, supporting first and last frame control. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.

- **Provider:** Alibaba
- **Category:** image-to-video
- **Price:** $0.0900 per run

## Key Features

- Alibaba's Wan 2.7 image animation model for smooth video generation from still images.
- Strong motion quality — natural, fluid movement with good temporal coherence.
- Bilingual prompt support — supports both English and Chinese prompts natively.
- Affordable pricing — cost-effective at $0.15 per 5-second clip.
- Multiple resolution support — generate at 480p or 720p.
- Fast generation — approximately 99 seconds per request.

## Parameters

| Parameter | Required | Description |
| --- | --- | --- |
| `prompt` | Yes | Description of the motion and scene dynamics (English or Chinese). |
| `image` | Yes | Source image URL to animate. |
| `duration` | No | Video length in seconds (default: 5). |
| `resolution` | No | Output resolution: 480p, 720p (default). |

## How to Use

1. Upload your source image (clear, well-lit frame).
2. Write a prompt describing the desired motion — supports English and Chinese.
3. Select duration and resolution.
4. Generate and download your animated video.

## Code Examples

### Python

```python
import os
import requests

response = requests.post(
    "https://aircube.ai/api/v3/wan-2.7/image-to-video",
    headers={
        "Authorization": "Bearer " + os.environ["AIRCUBE_API_KEY"],
        "Content-Type": "application/json",
    },
    json={
    "prompt": "Gentle waves lapping at the shore, clouds drifting across the sky",
    "image": "https://example.com/beach-sunset.jpg",
    "duration": 5,
    "resolution": "720p"
},
    timeout=300,
)
data = response.json()

if data["success"]:
    print("ID:", data["data"]["id"], "Status:", data["data"]["status"])
else:
    print("Error:", data["error"]["message"])
```

### Node.js

```javascript
const response = await fetch("https://aircube.ai/api/v3/wan-2.7/image-to-video", {
  method: "POST",
  headers: {
    "Authorization": "Bearer " + process.env.AIRCUBE_API_KEY,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
  "prompt": "Gentle waves lapping at the shore, clouds drifting across the sky",
  "image": "https://example.com/beach-sunset.jpg",
  "duration": 5,
  "resolution": "720p"
}),
});

const data = await response.json();

if (data.success) {
  console.log("ID:", data.data.id, "Status:", data.data.status);
} else {
  console.error("Error:", data.error.message);
}
```

### cURL

```curl
curl -X POST "https://aircube.ai/api/v3/wan-2.7/image-to-video" \
  -H "Authorization: Bearer $AIRCUBE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "prompt": "Gentle waves lapping at the shore, clouds drifting across the sky",
  "image": "https://example.com/beach-sunset.jpg",
  "duration": 5,
  "resolution": "720p"
}'
```

### Python (Async)

```python
import os
import time
import requests

# 1. Submit
response = requests.post(
    "https://aircube.ai/api/v3/wan-2.7/image-to-video",
    headers={
        "Authorization": "Bearer " + os.environ["AIRCUBE_API_KEY"],
        "Content-Type": "application/json",
    },
    json={
    "prompt": "Gentle waves lapping at the shore, clouds drifting across the sky",
    "image": "https://example.com/beach-sunset.jpg",
    "duration": 5,
    "resolution": "720p"
},
    timeout=300,
)
data = response.json()

if not data["success"]:
    print("Error:", data["error"]["message"])
    exit(1)

generation_id = data["data"]["id"]
print(f"Submitted: {generation_id}")

# 2. Poll until completed
while True:
    time.sleep(5)
    r = requests.get(
        f"https://aircube.ai/api/v3/status/{generation_id}",
        headers={"Authorization": "Bearer " + os.environ["AIRCUBE_API_KEY"]},
    )
    result = r.json()["data"]

    if result["status"] == "completed":
        print(result["output_url"])
        break
    elif result["status"] == "failed":
        print("Generation failed")
        break
```

### Node.js (Async)

```javascript
// 1. Submit
const response = await fetch("https://aircube.ai/api/v3/wan-2.7/image-to-video", {
  method: "POST",
  headers: {
    "Authorization": "Bearer " + process.env.AIRCUBE_API_KEY,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
  "prompt": "Gentle waves lapping at the shore, clouds drifting across the sky",
  "image": "https://example.com/beach-sunset.jpg",
  "duration": 5,
  "resolution": "720p"
}),
});
const data = await response.json();

if (!data.success) {
  console.error("Error:", data.error.message);
  process.exit(1);
}

const generationId = data.data.id;
console.log("Submitted:", generationId);

// 2. Poll until completed
while (true) {
  await new Promise((r) => setTimeout(r, 5000));
  const res = await fetch(
    `https://aircube.ai/api/v3/status/${generationId}`,
    { headers: { "Authorization": "Bearer " + process.env.AIRCUBE_API_KEY } },
  );
  const result = (await res.json()).data;

  if (result.status === "completed") {
    console.log(result.output_url);
    break;
  } else if (result.status === "failed") {
    console.error("Generation failed");
    break;
  }
}
```

### cURL (Async)

```curl
# 1. Submit
RESPONSE=$(curl -s -X POST "https://aircube.ai/api/v3/wan-2.7/image-to-video" \
  -H "Authorization: Bearer $AIRCUBE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "prompt": "Gentle waves lapping at the shore, clouds drifting across the sky",
  "image": "https://example.com/beach-sunset.jpg",
  "duration": 5,
  "resolution": "720p"
}')

ID=$(echo "$RESPONSE" | jq -r '.data.id')
echo "Submitted: $ID"

# 2. Poll until completed
while true; do
  sleep 5
  STATUS_RES=$(curl -s "https://aircube.ai/api/v3/status/$ID" \
    -H "Authorization: Bearer $AIRCUBE_API_KEY")
  STATUS=$(echo "$STATUS_RES" | jq -r '.data.status')

  if [ "$STATUS" = "completed" ]; then
    echo "$STATUS_RES" | jq -r '.data.output_url'
    break
  elif [ "$STATUS" = "failed" ]; then
    echo "Generation failed"; break
  fi
done
```

## Pricing

| Resolution | Duration | Cost |
| --- | --- | --- |
| 480p | 5s | $0.09 |
| 720p | 5s | $0.15 |

### Billing Rules

- 480p / 5s: $0.09.
- 720p / 5s: $0.15.
- Failed generations are not charged.

## Best Use Cases

- Budget-friendly video production — high volume at low cost.
- Social media content — animate photos for engaging posts.
- Portrait animation — bring still portraits to life.
- Chinese-language projects — native Chinese prompt support.
- Batch processing — affordable pricing enables high-volume workflows.

## Pro Tips

- Wan 2.7 supports both English and Chinese prompts natively.
- Use clear, well-lit source images for best motion quality.
- Describe physics-based motion for natural results.
- At $0.15 per clip, it's ideal for volume work — iterate freely.
- Combine with premium models like Seedance for hero content, Wan for volume.

## Notes

- Bilingual prompt support: English and Chinese.
- Output in MP4 format.
- Median generation time: approximately 99 seconds.
- Affordable pricing makes it ideal for volume workflows.

## FAQ

**Q: What is the Wan 2.7 Image to Video API?**

Alibaba's image animation model that produces smooth video from still images with bilingual prompt support, available at an affordable price point via AirCube.

**Q: How long can videos be?**

5 seconds per generation.

**Q: How much does it cost?**

$0.15 per 5-second clip at 720p, $0.09 at 480p.

**Q: Does it support Chinese prompts?**

Yes — Wan models support both English and Chinese prompts natively.

**Q: Can I use outputs commercially?**

Yes — generated videos are yours to use commercially.

**Q: How does quality compare to premium models?**

Good quality at a lower price point — ideal for volume work. Premium models like Seedance offer higher fidelity for hero content.
