Vidu API
Access Vidu instantly with Puter.js, and add AI to any app in a few lines of code without backend or API keys.
// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';
puter.ai.txt2vid("A sunrise drone shot flying over a calm ocean", {
model: "vidu/vidu-2.0"
}).then(videoElement => {
document.body.appendChild(videoElement);
});
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.ai.txt2vid("A sunrise drone shot flying over a calm ocean", {
model: "vidu/vidu-2.0"
}).then(videoElement => {
document.body.appendChild(videoElement);
});
</script>
</body>
</html>
List of Vidu Models
Vidu Q1
vidu/vidu-q1
Vidu Q1 is a high-performance generative video model from ShengShu Technology that produces cinematic 1080p videos up to 5 seconds with integrated AI-generated audio. It features a First-to-Last Frame system for seamless transitions between unrelated images and supports up to 7 reference images for multi-character consistency. The model excels at anime-style content and includes built-in 48kHz sound effects and background music generation from text prompts.
VideoVidu 2.0
vidu/vidu-2.0
Vidu 2.0 is an AI video generation model by ShengShu Technology that creates high-quality videos from text or images, supporting resolutions up to 1080p. It offers smoother motion, better frame consistency, and start/end frame control compared to its predecessor. The model is significantly faster and more affordable.
Frequently Asked Questions
The Vidu API gives you access to models for AI video generation. Through Puter.js, you can start using Vidu models instantly with zero setup or configuration.
Puter.js supports a variety of Vidu models, including Vidu Q1 and Vidu 2.0. Find all AI models supported by Puter.js in the AI model list.
With the User-Pays model, users cover their own AI costs through their Puter account. This means you can build apps without worrying about infrastructure expenses.
Puter.js is a JavaScript library that provides access to AI, storage, and other cloud services directly from a single API. It handles authentication, infrastructure, and scaling so you can focus on building your app.
Yes — the Vidu API through Puter.js works with any JavaScript framework, Node.js, or plain HTML. Just include the library and start building. See the documentation for more details.