skytells-research/realvisxl-v3-multi-controlnet

Public
3 runs

Input

Run this model in Node.js with one line of code:

npx create-replicate --model=skytells-research/realvisxl-v3-multi-controlnet
or set up a project from scratch
npm install replicate
Set the REPLICATE_API_TOKEN environment variable:
export REPLICATE_API_TOKEN=<paste-your-token-here>

Find your API token in your account settings.

Import and set up the client:
import Replicate from "replicate";
import fs from "node:fs";

const replicate = new Replicate({
  auth: process.env.REPLICATE_API_TOKEN,
});

Run skytells-research/realvisxl-v3-multi-controlnet using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.

const output = await replicate.run(
  "skytells-research/realvisxl-v3-multi-controlnet:b4a1f49b4899bd4bd169b1526ed477427e04b6a41f792157bcb97e38980a2398",
  {
    input: {
      width: 768,
      height: 768,
      prompt: "An astronaut riding a rainbow unicorn",
      refine: "no_refiner",
      scheduler: "K_EULER",
      lora_scale: 0.6,
      num_outputs: 1,
      controlnet_1: "none",
      controlnet_2: "none",
      controlnet_3: "none",
      guidance_scale: 7.5,
      apply_watermark: false,
      negative_prompt: "",
      prompt_strength: 0.8,
      sizing_strategy: "width_height",
      controlnet_1_end: 1,
      controlnet_2_end: 1,
      controlnet_3_end: 1,
      controlnet_1_start: 0,
      controlnet_2_start: 0,
      controlnet_3_start: 0,
      num_inference_steps: 30,
      controlnet_1_conditioning_scale: 0.75,
      controlnet_2_conditioning_scale: 0.75,
      controlnet_3_conditioning_scale: 0.75
    }
  }
);

// To access the file URL:
console.log(output[0].url()); //=> "http://example.com"

// To write the file to disk:
fs.writeFile("my-image.png", output[0]);

To learn more, take a look at the guide on getting started with Node.js.

Output

No output yet! Press "Submit" to start a prediction.

Run time and cost

This model runs on Nvidia L40S GPU hardware. We don't yet have enough runs of this model to provide performance information.

Readme

RealVisXL V3.0 with multi ControlNet and custom Loras

RealVis XL V3.0 with:

  • img2img
  • inpainting
  • custom Replicate lora loading
  • up to 3 simultaneous controlnets with different images
  • canny
  • midas depth
  • leres depth
  • soft edge hed
  • soft edge pidi
  • openpose
  • QR Monster (illusions)
  • lineart
  • lineart anime
  • img2img plus controlnet
  • inpainting plus controlnet
  • controlnet conditioning strengths
  • controlnet start and end controls
  • SDXL refiner
  • Image resizing based on width/height, input image or a control image
  • Disable safety checker via API