douwantech/musev

Public
359 runs

Run douwantech/musev with an API

Use one of our client libraries to get started quickly.

Set the REPLICATE_API_TOKEN environment variable

export REPLICATE_API_TOKEN=<paste-your-token-here>

Learn more about authentication

Install Replicate’s Node.js client library

npm install replicate
Learn more about setup

Run douwantech/musev using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.

import { writeFile } from "fs/promises";
import Replicate from "replicate";
const replicate = new Replicate();

const input = {
    image_input: "https://general-api.oss-cn-hangzhou.aliyuncs.com/static/2.jpg"
};

const output = await replicate.run("douwantech/musev:af9bc528919b6ea93e934a0a65b9b6e846bc11c86b2e323d0c0c9d56e92b9496", { input });

// To access the file URL:
console.log(output.url());
//=> "https://replicate.delivery/.../output.mp4"

// To write the file to disk:
await writeFile("output.mp4", output);
//=> output.mp4 written to disk
Learn more