Wan 2.2 Vace Inpainting API

wan-22-vace-fun-a14b/inpainting
Wan 2.2 VACE stands out as a professional-grade, multimodal video inpainting model designed to empower content creators with powerful editing and enhancement tools.
Output
$0.05 / sec
Released
Nov 24, 2025

Overview

Overview

Wan 2.2 Vace Inpainting is an advanced video-to-video generative AI model designed primarily for high-quality inpainting tasks in video content. It facilitates seamless video editing by enabling users to mask and modify specific regions in videos, maintaining contextual continuity, motion consistency, and fine detail restoration. This model integrates cutting-edge multimodal understanding and adaptive video generation technologies, optimized for resolutions up to 720p.

Technical Specifications

  • Model Architecture: Multimodal video and image transformer backbone with adaptive scene and motion prediction.
  • Parameter Size: 14 billion parameters for fine granularity in video detail synthesis.
  • Resolution Range: Up to 720p resolution output; default usage often at 480p for speed.
  • Frame Rate Processing: Operates typically at 16 frames per second for stable video synthesis.
  • Input/Output Formats: Supports mp4, mov, webm, m4v, gif for video; jpg, jpeg, png, webp, gif, avif for images.
  • Memory Use: Designed for efficient GPU usage supporting local and cloud-based workflows with moderate memory footprint.

Performance Benchmarks

  • Inpainting Quality: Excels in preserving context and texture detail during localized video edits.
  • Temporal Stability: Strong performance in motion continuity compared to baseline video inpainting models.
  • Resolution Scaling: High fidelity at 720p with minor trade-offs in processing speed; faster processing at 480p with maintained visual consistency.
  • Maximum Clip Length: Typically supports up to 80-81 frames reliably, beyond which quality may degrade.

Key Features

  • Video Inpainting with Masking: Allows selective editing by inputting a source video and a corresponding mask video to inpaint or replace masked areas.
  • Temporal Consistency: Maintains smooth motion flow and coherence across frames to prevent flickering or artifacts during inpainting.
  • High Detail Restoration: Reconstructs fine textures and details within the masked region for natural appearance.
  • Resolution Support: Supports video output commonly at 480p, 580p, and up to 720p with quality scaling depending on resource availability.
  • Flexible Input Types: Accepts various video formats including mp4, mov, webm, m4v, and gif, and image formats like jpg, png, webp for mask or reference inputs.
  • Integration with ComfyUI: Compatible with ComfyUI workflows to combine inpainting with text-to-video, image animation, and outpainting pipelines.

API Pricing

  • 360p: $0.065;
  • 540p: $0.0975;
  • 720p: $0.13

‍

Code Sample

Comparison with Other Models

vs Seedance 1.0: Seedance 1.0 provides slightly better frame rate output at 24 fps compared to Wan 2.2's 16 fps, beneficial for ultra-smooth video generation. However, Wan 2.2 offers better integration for inpainting flexibility and runs efficiently on more modest hardware setups, making it more accessible for creators.

vs Veo 3: Veo 3 leads on advanced closed-source video enhancement with superior resolution and speed but at a significantly higher cost. Wan 2.2 competes well as an open-source alternative with strong multimodal inpainting capabilities and easier API integration, suitable for broad professional use.

vs Generic Baseline Video Inpainting: Compared to basic baseline models, Wan 2.2 delivers significantly improved texture detail restoration and motion coherence. Baseline models often produce more artifacts and flickering, making Wan 2.2 the preferable choice for quality video inpainting projects.

API Integration

Accessible via AI/ML API. Documentation: available here.

Use cases

  • Professional video post-production: VFX touch-ups, object removal, scene re-editing.
  • Digital marketing content creation: Automated video personalization and brand adaptation.
  • Educational video material enhancement: Visual reconstructions or content update animations.
  • Creative arts and digital storytelling: Seamless animation replacements and effects.

‍

How to use Wan 2.2 Vace Inpainting API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to wan-22-vace-fun-a14b/inpainting.
import requests, time

headers = {"Authorization": "Bearer " + AIMLAPI_KEY}
job = requests.post(
    "https://api.aimlapi.com/v2/video/generations",
    headers=headers,
    json={
      "model": "wan-22-vace-fun-a14b/inpainting",
      "prompt": "A serene timelapse of clouds over a mountain range"
    },
).json()
gid = job["id"]

while True:
    res = requests.get(f"https://api.aimlapi.com/v2/video/generations?generation_id={gid}", headers=headers).json()
    if res.get("status") in ("completed", "error"):
        break
    time.sleep(5)
print(res["video"]["url"])
const headers = {
  Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
  "Content-Type": "application/json",
};
const job = await (await fetch("https://api.aimlapi.com/v2/video/generations", {
  method: "POST",
  headers,
  body: JSON.stringify({
    "model": "wan-22-vace-fun-a14b/inpainting",
    "prompt": "A serene timelapse of clouds over a mountain range"
  }),
})).json();

let res;
do {
  await new Promise((r) => setTimeout(r, 5000));
  res = await (await fetch(`https://api.aimlapi.com/v2/video/generations?generation_id=${job.id}`, { headers })).json();
} while (!["completed", "error"].includes(res.status));
console.log(res.video.url);
# submit the generation — the response contains the job "id"
curl -X POST https://api.aimlapi.com/v2/video/generations \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"wan-22-vace-fun-a14b/inpainting","prompt":"A serene timelapse of clouds over a mountain range"}'

# then poll until status is "completed" — video.url holds the result
curl "https://api.aimlapi.com/v2/video/generations?generation_id={id}" -H "Authorization: Bearer $AIMLAPI_KEY"

OpenAI-compatible — swap the base URL and it works with your existing SDK.

Wan 2.2 Vace Inpainting API Pricing

TypePrice
Output
$0.05 / sec

Wan 2.2 Vace Inpainting vs other models

ModelInputOutputContextBest for
$0.05 / sec
Video generation
$0.2 / sec (variable)
Video generation
$1.95 / 1M tokens
$0.10136 / sec
Video generation
$0.0711 / sec
Cinematic video + native audio

Frequently asked questions

Wan 2.2 Vace Inpainting takes text, video as input and returns video.

Wan 2.2 Vace Inpainting is priced at $0.065 / gen.

Wan 2.2 Vace Inpainting is billed per generation — a fixed charge per output rather than by prompt length.

Wan 2.2 Vace Inpainting was built by Alibaba Cloud.

Send a request to v2/video/generations with wan-22-vace-fun-a14b/inpainting as the model id.

Yes. Wan 2.2 Vace Inpainting is served through AI/ML API, so the same key and endpoint format used for other models applies.

It is classified as a video generation model with video editing features.

Start building with Wan 2.2 Vace Inpainting

Get API Key
1000+ models, one API.