nateraw / stable-diffusion-videos

Generate videos by interpolating the latent space of Stable Diffusion

  • Public
  • 58.4K runs
  • A100 (80GB)
  • GitHub
  • License

Run nateraw/stable-diffusion-videos 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 nateraw/stable-diffusion-videos 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 = {
    num_steps: 150
};

const output = await replicate.run("nateraw/stable-diffusion-videos:2d87f0f8bc282042002f8d24458bbf588eee5e8d8fffb6fbb10ed48d1dac409e", { input });

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