Live
Black Hat USAAI BusinessBlack Hat AsiaAI BusinessHow Bifrost Reduces GPT Costs and Response Times with Semantic CachingDEV Community[New Research] You need Slack to be an effective agentLessWrong AIAn interview with Galen Buckwalter, a BCI recipient in a Caltech brain implant study, on his recent ability to use the implant to produce musical tones (Emily Mullin/Wired)TechmemeTop 5 Enterprise AI Gateways to Track Claude Code CostsDEV CommunityAntigravity: My Approach to Deliver the Most Assured Value for the Least MoneyDEV CommunityTrading My Body for Logic: The Physical Decay We IgnoreDEV CommunityGetting Started with Apache Kafka: What I Learned Building Event-Driven Microservices at EricssonDEV CommunityTop 5 Enterprise AI Gateways to Reduce LLM Cost and LatencyDEV CommunityLLM Cost Tracking and Spend Management for Engineering TeamsDEV CommunityWhat Does It Take to Keep an AI Alive?DEV CommunityThe Role of AI in Today's Business LandscapeDEV CommunityWho am I? The Guardian of the Siuntio FortDEV CommunityBlack Hat USAAI BusinessBlack Hat AsiaAI BusinessHow Bifrost Reduces GPT Costs and Response Times with Semantic CachingDEV Community[New Research] You need Slack to be an effective agentLessWrong AIAn interview with Galen Buckwalter, a BCI recipient in a Caltech brain implant study, on his recent ability to use the implant to produce musical tones (Emily Mullin/Wired)TechmemeTop 5 Enterprise AI Gateways to Track Claude Code CostsDEV CommunityAntigravity: My Approach to Deliver the Most Assured Value for the Least MoneyDEV CommunityTrading My Body for Logic: The Physical Decay We IgnoreDEV CommunityGetting Started with Apache Kafka: What I Learned Building Event-Driven Microservices at EricssonDEV CommunityTop 5 Enterprise AI Gateways to Reduce LLM Cost and LatencyDEV CommunityLLM Cost Tracking and Spend Management for Engineering TeamsDEV CommunityWhat Does It Take to Keep an AI Alive?DEV CommunityThe Role of AI in Today's Business LandscapeDEV CommunityWho am I? The Guardian of the Siuntio FortDEV Community

Wan2.1: generate videos with an API

Replicate BlogMarch 5, 20251 min read0 views
Source Quiz

Wan2.1 is the most capable open-source video generation model, producing coherent and high-quality outputs. Learn how to run it in the cloud with a single line of code.

If you’ve been following the AI video space lately, you’ve probably noticed that it’s exploding. New models are coming out every week with better outputs, higher resolution, and faster generation speeds.

Wan2.1 is the newest and most capable open-source video model. It was released last week, and it’s topping the leaderboards.

Your browser does not support the video tag.

There’s a lot to like about Wan2.1:

  • It’s fast on Replicate. A 5s video takes 39s at 480p, or 150s at 720p.

  • It’s open source, both the model weights and the code. The community is already building tools to enhance it.

  • It produces stunning videos with real-world accuracy.

  • It’s small enough to run on consumer GPUs.

In this post we’ll cover the new models and how to run them with an API.

Model flavors

The model is available on Replicate in a number of different flavors:

  • Wan 2.1 text to video, 480p – wavespeedai/wan-2.1-t2v-480p (14 billion parameters)

  • Wan 2.1 image to video, 480p – wavespeedai/wan-2.1-i2v-480p (14 billion parameters)

  • Wan 2.1 text to video, 720p – wavespeedai/wan-2.1-t2v-720p (14 billion parameters)

  • Wan 2.1 image to video, 720p – wavespeedai/wan-2.1-i2v-720p (14 billion parameters)

  • Wan 2.1 text to video, 480p – wan-video/wan-2.1-1.3b (1.3 billion parameters)

The 480p models are great for experimentation because they run faster.

Use 720p if you need a higher resolution.

The 1.3b models are smaller, and designed to run on consumer GPUs.

Real-world accuracy

The 14b model excels at real-world physics, and you can push it to do things most other models struggle with:

  • Hands: The model handles hand details well, showing individual fingers, skin textures, and details like rings.

  • Drawing Animation: It turns static drawings into short video clips.

  • Physics: When prompted to create a video of a giraffe hanging upside down from a tree, the model depicts the tree branch bending under the weight.

  • Hair movement: In videos featuring people, the hair is rendered accurately, showing individual strands moving as people turn their heads.

  • Object interactions: It can accurately render multiple objects interacting within the same space.

  • Crowds: When rendering scenes with large crowds, each thing remains distinct, creating a coherent scene.

Run Wan2.1 with an API

Every model on Replicate has a scalable cloud API, and Wan2.1 is no exception.

Here’s a code snippet for running the Wan2.1 text-to-video model using the Replicate JavaScript client:

The code for the image-to-video model is nearly identical. Just omit the image input when calling the model:

Experiment with settings

The Wavespeed Wan2.1 models also expose a number of different settings for you to experiment with.

Try experimenting with guide_scale, shift and steps. We’ve found that a lower guide_scale and shift (about 4 and 2) can give lovely realistic videos.

A community effort

This model wouldn’t exist without the work of numerous open-source contributors. We’re using WavespeedAI’s optimizations to bring you the fastest generations in the world.

Big shout-outs to Alibaba for open sourcing the model, and to @chengzeyi and @wavespeed_ai for working with us to bring you these speeds. ⚡️

Was this article helpful?

Sign in to highlight and annotate this article

AI
Ask AI about this article
Powered by AI News Hub · full article context loaded
Ready

Conversation starters

Ask anything about this article…

Daily AI Digest

Get the top 5 AI stories delivered to your inbox every morning.

More about

modelopen-source

Knowledge Map

Knowledge Map
TopicsEntitiesSource
Wan2.1: gen…modelopen-sourceReplicate B…

Connected Articles — Knowledge Graph

This article is connected to other articles through shared AI topics and tags.

Knowledge Graph100 articles · 124 connections
Scroll to zoom · drag to pan · click to open

Discussion

Sign in to join the discussion

No comments yet — be the first to share your thoughts!

More in Releases