Skip to main content

Basic usage

Send a text prompt to generate a video output
import Bytez from 'bytez.js';

// insert your key
const sdk = new Bytez('BYTEZ_KEY');

// choose your model
const model = sdk.model('ali-vilab/text-to-video-ms-1.7b');

// provide the model with input
const input = "A cat playing with a rose";

// send to the model
const { error, output } = await model.run(input);

// observe the output
console.log({ error, output });