jyoung105 / stable-diffusion-3.5-large

  • Public
  • 25 runs
Iterate in playground

Run jyoung105/stable-diffusion-3.5-large 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 jyoung105/stable-diffusion-3.5-large 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 = {
    prompt: "A man with hoodie on, illustration"
};

const output = await replicate.run("jyoung105/stable-diffusion-3.5-large:69b4e203be29bb4642a2f48be466ddfe31a83cf2e806ae15e51e39ac5fb16828", { input });
for (const [index, item] of Object.entries(output)) {
  await writeFile(`output_${index}.png`, item);
}
//=> output_0.png written to disk
Learn more