0.0
The project is in a healthy, maintained state
Create image-to-video or reference-to-video tasks, retrieve their status, or use `run` to poll until completion. Validation runs on the RunAPI server.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

~> 0.6.1
 Project Readme

RunAPI

Vidu API SDKs for JavaScript, Python, Ruby, Go, Java, and PHP on RunAPI.

npm PyPI RubyGems Go Reference License

Vidu Js SDK for RunAPI

Create image-to-video or reference-to-video tasks, retrieve their status, or use run to poll until completion. Validation runs on the RunAPI server.

Install

npm install @runapi.ai/vidu

Quick start

Set RUNAPI_API_KEY in your environment. Replace the example image URL with a publicly accessible reference image.

import { ViduClient } from '@runapi.ai/vidu';

const client = new ViduClient(); // reads RUNAPI_API_KEY
const result = await client.referenceToVideo.run({
  model: 'vidu-q4-reference-to-video',
  prompt: 'Animate the referenced scene with a slow camera pan',
  reference_image_urls: ['https://cdn.runapi.ai/public/samples/image.jpg'],
  audio: false,
});
console.log(result.videos);

Use create to submit without waiting and get to retrieve the task by ID. Reference generation requires a prompt and 1–15 image URLs; it also accepts up to 3 MP3 reference audio URLs. Images must be JPG/JPEG/PNG/WEBP, at most 50 MB each; MP3 references must be 3–12 seconds and at most 50 MB each. Remote file properties are checked during provider processing, so a task can fail asynchronously.

See the API reference and SDK guide. For current pricing, use the canonical model pages: image-to-video and reference-to-video.