lucataco/animate-diff-sdxl-lcm

Animate Your Personalized Text-to-Image Diffusion Models with SDXL and LCM
Run lucataco/animate-diff-sdxl-lcm 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
Run lucataco/animate-diff-sdxl-lcm 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 = {
seed: 0
};
const output = await replicate.run("lucataco/animate-diff-sdxl-lcm:64fe561273282266ba4b51fd84e89603412c088882d1f1c325d875c09b3816af", { 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