You're looking at a specific version of this model. Jump to the model overview.
nightmareai /disco-diffusion:0ed75cb9
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run nightmareai/disco-diffusion using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"nightmareai/disco-diffusion:0ed75cb99417a4391df952152e12e1ba426226fd68da0e4a533a2f48af1fbb12",
{
input: {
RN50: true,
steps: 75,
width: 512,
ViTB16: true,
ViTB32: true,
height: 256,
prompt: "A beautiful painting of a singular lighthouse, shining its light across a tumultuous sea of blood by greg rutkowski and thomas kinkade, Trending on artstation.",
tv_scale: 0,
sat_scale: 0,
skip_augs: false,
init_scale: 1000,
skip_steps: 10,
range_scale: 150,
cutn_batches: 4,
target_scale: 20000,
diffusion_model: "512x512_diffusion_uncond_finetune_008100",
clip_guidance_scale: 5000,
use_secondary_model: true,
diffusion_sampling_mode: "plms"
}
}
);
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run nightmareai/disco-diffusion using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"nightmareai/disco-diffusion:0ed75cb99417a4391df952152e12e1ba426226fd68da0e4a533a2f48af1fbb12",
input={
"RN50": True,
"steps": 75,
"width": 512,
"ViTB16": True,
"ViTB32": True,
"height": 256,
"prompt": "A beautiful painting of a singular lighthouse, shining its light across a tumultuous sea of blood by greg rutkowski and thomas kinkade, Trending on artstation.",
"tv_scale": 0,
"sat_scale": 0,
"skip_augs": False,
"init_scale": 1000,
"skip_steps": 10,
"range_scale": 150,
"cutn_batches": 4,
"target_scale": 20000,
"diffusion_model": "512x512_diffusion_uncond_finetune_008100",
"clip_guidance_scale": 5000,
"use_secondary_model": True,
"diffusion_sampling_mode": "plms"
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run nightmareai/disco-diffusion using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"version": "0ed75cb99417a4391df952152e12e1ba426226fd68da0e4a533a2f48af1fbb12",
"input": {
"RN50": true,
"steps": 75,
"width": 512,
"ViTB16": true,
"ViTB32": true,
"height": 256,
"prompt": "A beautiful painting of a singular lighthouse, shining its light across a tumultuous sea of blood by greg rutkowski and thomas kinkade, Trending on artstation.",
"tv_scale": 0,
"sat_scale": 0,
"skip_augs": false,
"init_scale": 1000,
"skip_steps": 10,
"range_scale": 150,
"cutn_batches": 4,
"target_scale": 20000,
"diffusion_model": "512x512_diffusion_uncond_finetune_008100",
"clip_guidance_scale": 5000,
"use_secondary_model": true,
"diffusion_sampling_mode": "plms"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
No output yet! Press "Submit" to start a prediction.