myaiteam2 / album-video-maker

  • Public
  • 76 runs
  • CPU

Run myaiteam2/album-video-maker 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 myaiteam2/album-video-maker using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.

import Replicate from "replicate";
const replicate = new Replicate();

const input = {
    audio: "https://replicate.delivery/pbxt/KgvofyErPcxpWCe1TiMw7efxU02d9O4YcaH5pmKOaztJb9OW/Truth%20of%20Addiction.mp3",
    image: "https://replicate.delivery/pbxt/KgvogSy3EZNOYxzbF5T2BOLRIKkWLHYEO4RWWuTTboEKn8g9/MY%20ADDICTION.png",
    end_time: "00:59"
};

const output = await replicate.run("myaiteam2/album-video-maker:6417b9d20f4132c5d78e4c411c8f1d0f402a7569435e4c91a1663014fd7bfa18", { input });

import { writeFile } from "node:fs/promises";
await writeFile("output.mp4", output);
//=> output.mp4 written to disk
Learn more