Generate videos from textual descriptions for applications like content creation, entertainment, and education.

Quickstart

Generate Video from Text Input

Send a text prompt to generate a video output.

import Bytez from "bytez.js";
import { writeFileSync } from "fs";

const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
const model = client.model("ali-vilab/text-to-video-ms-1.7b");

const { error, output_mp4 } = await model.run("A cat playing with a rose");

if (error) {
  console.error("Error:", error);
} else {
  const buffer = Buffer.from(output_mp4, "base64");
  writeFileSync("output.mp4", buffer);
  console.log("Video successfully saved to output.mp4");
}

Demo