Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
vetkastar /stable_diffusion_no_ui_control:12f6862d
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";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run vetkastar/stable_diffusion_no_ui_control using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"vetkastar/stable_diffusion_no_ui_control:12f6862df3702766b65a3ed33ebd5ab1804d88c359719d784446a7b2b7d4acf1",
{
input: {
width: 512,
height: 512,
prompt: "",
sampler: "Euler a",
ad_model: "face_yolov8s",
hr_scale: 2,
ad_prompt: "",
cfg_scale: 7,
ad_enabled: false,
ad_sampler: "Euler a",
hr_enabled: false,
hr_resize_x: 0,
hr_resize_y: 0,
hr_upscaler: "Latent",
num_outputs: 1,
ad_mask_blur: 4,
ad_2_ad_model: "face_yolov8s",
ad_3_ad_model: "face_yolov8s",
ad_4_ad_model: "face_yolov8s",
ad_confidence: 0.3,
sampler_steps: 20,
ad_2_ad_prompt: "",
ad_3_ad_prompt: "",
ad_4_ad_prompt: "",
ad_use_sampler: true,
openpose_model: "controlnet11Models_openpose",
scribble_model: "controlnet11Models_scribble",
ad_2_ad_enabled: false,
ad_2_ad_sampler: "Euler a",
ad_3_ad_enabled: false,
ad_3_ad_sampler: "Euler a",
ad_4_ad_enabled: false,
ad_4_ad_sampler: "Euler a",
ad_dilate_erode: 4,
generation_type: "txt2img",
negative_prompt: "(deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation",
tile_blur_model: "controlnet11Models_tile",
ad_inpaint_width: 512,
openpose_enabled: false,
scribble_enabled: false,
ad_2_ad_mask_blur: 4,
ad_3_ad_mask_blur: 4,
ad_4_ad_mask_blur: 4,
ad_inpaint_height: 512,
reference_enabled: false,
tile_blur_enabled: false,
ad_2_ad_confidence: 0.3,
ad_3_ad_confidence: 0.3,
ad_4_ad_confidence: 0.3,
ad_mask_merge_mode: "None",
ad_negative_prompt: "",
denoising_strength: 0.75,
instruct_p2p_model: "control_v11e_sd15_ip2p_fp16",
sd_upscaler_enable: false,
ad_2_ad_use_sampler: true,
ad_3_ad_use_sampler: true,
ad_4_ad_use_sampler: true,
ad_2_ad_dilate_erode: 4,
ad_3_ad_dilate_erode: 4,
ad_4_ad_dilate_erode: 4,
hr_second_pass_steps: 0,
instruct_p2p_enabled: false,
sd_upscaler_upscaler: "4x_foolhardy_Remacri",
ad_2_ad_inpaint_width: 512,
ad_3_ad_inpaint_width: 512,
ad_4_ad_inpaint_width: 512,
ad_denoising_strength: 0.4,
openpose_control_mode: "Balanced",
openpose_guidance_end: 1,
openpose_preprocessor: "openpose_full",
scribble_control_mode: "Balanced",
scribble_guidance_end: 1,
scribble_preprocessor: "t2ia_sketch_pidi",
ad_2_ad_inpaint_height: 512,
ad_3_ad_inpaint_height: 512,
ad_4_ad_inpaint_height: 512,
ad_inpaint_only_masked: true,
reference_control_mode: "Balanced",
reference_guidance_end: 1,
reference_preprocessor: "reference_only",
tile_blur_control_mode: "Balanced",
tile_blur_guidance_end: 1,
tile_blur_preprocessor: "tile_resample",
ad_2_ad_mask_merge_mode: "None",
ad_2_ad_negative_prompt: "",
ad_3_ad_mask_merge_mode: "None",
ad_3_ad_negative_prompt: "",
ad_4_ad_mask_merge_mode: "None",
ad_4_ad_negative_prompt: "",
openpose_control_weight: 0.6,
openpose_guidance_start: 0,
scribble_control_weight: 0.6,
scribble_guidance_start: 0,
scribble_xdog_threshold: 32,
clip_stop_at_last_layers: 2,
reference_control_weight: 0.8,
reference_guidance_start: 0,
reference_style_fidelity: 0.5,
sd_upscaler_scale_factor: 2,
sd_upscaler_tile_overlap: 16,
tile_blur_control_weight: 0.6,
tile_blur_guidance_start: 0,
instruct_p2p_control_mode: "Balanced",
instruct_p2p_guidance_end: 1,
ad_2_ad_denoising_strength: 0.4,
ad_3_ad_denoising_strength: 0.4,
ad_4_ad_denoising_strength: 0.4,
ad_2_ad_inpaint_only_masked: true,
ad_3_ad_inpaint_only_masked: true,
ad_4_ad_inpaint_only_masked: true,
ad_use_inpaint_width_height: false,
instruct_p2p_control_weight: 0.8,
instruct_p2p_guidance_start: 0,
tile_blur_down_sampling_rate: 1,
ad_inpaint_only_masked_padding: 32,
ad_2_ad_use_inpaint_width_height: false,
ad_3_ad_use_inpaint_width_height: false,
ad_4_ad_use_inpaint_width_height: false,
openpose_preprocessor_resolution: 512,
scribble_preprocessor_resolution: 512,
ad_2_ad_inpaint_only_masked_padding: 32,
ad_3_ad_inpaint_only_masked_padding: 32,
ad_4_ad_inpaint_only_masked_padding: 32
}
}
);
// 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.
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 vetkastar/stable_diffusion_no_ui_control using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"vetkastar/stable_diffusion_no_ui_control:12f6862df3702766b65a3ed33ebd5ab1804d88c359719d784446a7b2b7d4acf1",
input={
"width": 512,
"height": 512,
"prompt": "",
"sampler": "Euler a",
"ad_model": "face_yolov8s",
"hr_scale": 2,
"ad_prompt": "",
"cfg_scale": 7,
"ad_enabled": False,
"ad_sampler": "Euler a",
"hr_enabled": False,
"hr_resize_x": 0,
"hr_resize_y": 0,
"hr_upscaler": "Latent",
"num_outputs": 1,
"ad_mask_blur": 4,
"ad_2_ad_model": "face_yolov8s",
"ad_3_ad_model": "face_yolov8s",
"ad_4_ad_model": "face_yolov8s",
"ad_confidence": 0.3,
"sampler_steps": 20,
"ad_2_ad_prompt": "",
"ad_3_ad_prompt": "",
"ad_4_ad_prompt": "",
"ad_use_sampler": True,
"openpose_model": "controlnet11Models_openpose",
"scribble_model": "controlnet11Models_scribble",
"ad_2_ad_enabled": False,
"ad_2_ad_sampler": "Euler a",
"ad_3_ad_enabled": False,
"ad_3_ad_sampler": "Euler a",
"ad_4_ad_enabled": False,
"ad_4_ad_sampler": "Euler a",
"ad_dilate_erode": 4,
"generation_type": "txt2img",
"negative_prompt": "(deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation",
"tile_blur_model": "controlnet11Models_tile",
"ad_inpaint_width": 512,
"openpose_enabled": False,
"scribble_enabled": False,
"ad_2_ad_mask_blur": 4,
"ad_3_ad_mask_blur": 4,
"ad_4_ad_mask_blur": 4,
"ad_inpaint_height": 512,
"reference_enabled": False,
"tile_blur_enabled": False,
"ad_2_ad_confidence": 0.3,
"ad_3_ad_confidence": 0.3,
"ad_4_ad_confidence": 0.3,
"ad_mask_merge_mode": "None",
"ad_negative_prompt": "",
"denoising_strength": 0.75,
"instruct_p2p_model": "control_v11e_sd15_ip2p_fp16",
"sd_upscaler_enable": False,
"ad_2_ad_use_sampler": True,
"ad_3_ad_use_sampler": True,
"ad_4_ad_use_sampler": True,
"ad_2_ad_dilate_erode": 4,
"ad_3_ad_dilate_erode": 4,
"ad_4_ad_dilate_erode": 4,
"hr_second_pass_steps": 0,
"instruct_p2p_enabled": False,
"sd_upscaler_upscaler": "4x_foolhardy_Remacri",
"ad_2_ad_inpaint_width": 512,
"ad_3_ad_inpaint_width": 512,
"ad_4_ad_inpaint_width": 512,
"ad_denoising_strength": 0.4,
"openpose_control_mode": "Balanced",
"openpose_guidance_end": 1,
"openpose_preprocessor": "openpose_full",
"scribble_control_mode": "Balanced",
"scribble_guidance_end": 1,
"scribble_preprocessor": "t2ia_sketch_pidi",
"ad_2_ad_inpaint_height": 512,
"ad_3_ad_inpaint_height": 512,
"ad_4_ad_inpaint_height": 512,
"ad_inpaint_only_masked": True,
"reference_control_mode": "Balanced",
"reference_guidance_end": 1,
"reference_preprocessor": "reference_only",
"tile_blur_control_mode": "Balanced",
"tile_blur_guidance_end": 1,
"tile_blur_preprocessor": "tile_resample",
"ad_2_ad_mask_merge_mode": "None",
"ad_2_ad_negative_prompt": "",
"ad_3_ad_mask_merge_mode": "None",
"ad_3_ad_negative_prompt": "",
"ad_4_ad_mask_merge_mode": "None",
"ad_4_ad_negative_prompt": "",
"openpose_control_weight": 0.6,
"openpose_guidance_start": 0,
"scribble_control_weight": 0.6,
"scribble_guidance_start": 0,
"scribble_xdog_threshold": 32,
"clip_stop_at_last_layers": 2,
"reference_control_weight": 0.8,
"reference_guidance_start": 0,
"reference_style_fidelity": 0.5,
"sd_upscaler_scale_factor": 2,
"sd_upscaler_tile_overlap": 16,
"tile_blur_control_weight": 0.6,
"tile_blur_guidance_start": 0,
"instruct_p2p_control_mode": "Balanced",
"instruct_p2p_guidance_end": 1,
"ad_2_ad_denoising_strength": 0.4,
"ad_3_ad_denoising_strength": 0.4,
"ad_4_ad_denoising_strength": 0.4,
"ad_2_ad_inpaint_only_masked": True,
"ad_3_ad_inpaint_only_masked": True,
"ad_4_ad_inpaint_only_masked": True,
"ad_use_inpaint_width_height": False,
"instruct_p2p_control_weight": 0.8,
"instruct_p2p_guidance_start": 0,
"tile_blur_down_sampling_rate": 1,
"ad_inpaint_only_masked_padding": 32,
"ad_2_ad_use_inpaint_width_height": False,
"ad_3_ad_use_inpaint_width_height": False,
"ad_4_ad_use_inpaint_width_height": False,
"openpose_preprocessor_resolution": 512,
"scribble_preprocessor_resolution": 512,
"ad_2_ad_inpaint_only_masked_padding": 32,
"ad_3_ad_inpaint_only_masked_padding": 32,
"ad_4_ad_inpaint_only_masked_padding": 32
}
)
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 vetkastar/stable_diffusion_no_ui_control 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": "vetkastar/stable_diffusion_no_ui_control:12f6862df3702766b65a3ed33ebd5ab1804d88c359719d784446a7b2b7d4acf1",
"input": {
"width": 512,
"height": 512,
"prompt": "",
"sampler": "Euler a",
"ad_model": "face_yolov8s",
"hr_scale": 2,
"ad_prompt": "",
"cfg_scale": 7,
"ad_enabled": false,
"ad_sampler": "Euler a",
"hr_enabled": false,
"hr_resize_x": 0,
"hr_resize_y": 0,
"hr_upscaler": "Latent",
"num_outputs": 1,
"ad_mask_blur": 4,
"ad_2_ad_model": "face_yolov8s",
"ad_3_ad_model": "face_yolov8s",
"ad_4_ad_model": "face_yolov8s",
"ad_confidence": 0.3,
"sampler_steps": 20,
"ad_2_ad_prompt": "",
"ad_3_ad_prompt": "",
"ad_4_ad_prompt": "",
"ad_use_sampler": true,
"openpose_model": "controlnet11Models_openpose",
"scribble_model": "controlnet11Models_scribble",
"ad_2_ad_enabled": false,
"ad_2_ad_sampler": "Euler a",
"ad_3_ad_enabled": false,
"ad_3_ad_sampler": "Euler a",
"ad_4_ad_enabled": false,
"ad_4_ad_sampler": "Euler a",
"ad_dilate_erode": 4,
"generation_type": "txt2img",
"negative_prompt": "(deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation",
"tile_blur_model": "controlnet11Models_tile",
"ad_inpaint_width": 512,
"openpose_enabled": false,
"scribble_enabled": false,
"ad_2_ad_mask_blur": 4,
"ad_3_ad_mask_blur": 4,
"ad_4_ad_mask_blur": 4,
"ad_inpaint_height": 512,
"reference_enabled": false,
"tile_blur_enabled": false,
"ad_2_ad_confidence": 0.3,
"ad_3_ad_confidence": 0.3,
"ad_4_ad_confidence": 0.3,
"ad_mask_merge_mode": "None",
"ad_negative_prompt": "",
"denoising_strength": 0.75,
"instruct_p2p_model": "control_v11e_sd15_ip2p_fp16",
"sd_upscaler_enable": false,
"ad_2_ad_use_sampler": true,
"ad_3_ad_use_sampler": true,
"ad_4_ad_use_sampler": true,
"ad_2_ad_dilate_erode": 4,
"ad_3_ad_dilate_erode": 4,
"ad_4_ad_dilate_erode": 4,
"hr_second_pass_steps": 0,
"instruct_p2p_enabled": false,
"sd_upscaler_upscaler": "4x_foolhardy_Remacri",
"ad_2_ad_inpaint_width": 512,
"ad_3_ad_inpaint_width": 512,
"ad_4_ad_inpaint_width": 512,
"ad_denoising_strength": 0.4,
"openpose_control_mode": "Balanced",
"openpose_guidance_end": 1,
"openpose_preprocessor": "openpose_full",
"scribble_control_mode": "Balanced",
"scribble_guidance_end": 1,
"scribble_preprocessor": "t2ia_sketch_pidi",
"ad_2_ad_inpaint_height": 512,
"ad_3_ad_inpaint_height": 512,
"ad_4_ad_inpaint_height": 512,
"ad_inpaint_only_masked": true,
"reference_control_mode": "Balanced",
"reference_guidance_end": 1,
"reference_preprocessor": "reference_only",
"tile_blur_control_mode": "Balanced",
"tile_blur_guidance_end": 1,
"tile_blur_preprocessor": "tile_resample",
"ad_2_ad_mask_merge_mode": "None",
"ad_2_ad_negative_prompt": "",
"ad_3_ad_mask_merge_mode": "None",
"ad_3_ad_negative_prompt": "",
"ad_4_ad_mask_merge_mode": "None",
"ad_4_ad_negative_prompt": "",
"openpose_control_weight": 0.6,
"openpose_guidance_start": 0,
"scribble_control_weight": 0.6,
"scribble_guidance_start": 0,
"scribble_xdog_threshold": 32,
"clip_stop_at_last_layers": 2,
"reference_control_weight": 0.8,
"reference_guidance_start": 0,
"reference_style_fidelity": 0.5,
"sd_upscaler_scale_factor": 2,
"sd_upscaler_tile_overlap": 16,
"tile_blur_control_weight": 0.6,
"tile_blur_guidance_start": 0,
"instruct_p2p_control_mode": "Balanced",
"instruct_p2p_guidance_end": 1,
"ad_2_ad_denoising_strength": 0.4,
"ad_3_ad_denoising_strength": 0.4,
"ad_4_ad_denoising_strength": 0.4,
"ad_2_ad_inpaint_only_masked": true,
"ad_3_ad_inpaint_only_masked": true,
"ad_4_ad_inpaint_only_masked": true,
"ad_use_inpaint_width_height": false,
"instruct_p2p_control_weight": 0.8,
"instruct_p2p_guidance_start": 0,
"tile_blur_down_sampling_rate": 1,
"ad_inpaint_only_masked_padding": 32,
"ad_2_ad_use_inpaint_width_height": false,
"ad_3_ad_use_inpaint_width_height": false,
"ad_4_ad_use_inpaint_width_height": false,
"openpose_preprocessor_resolution": 512,
"scribble_preprocessor_resolution": 512,
"ad_2_ad_inpaint_only_masked_padding": 32,
"ad_3_ad_inpaint_only_masked_padding": 32,
"ad_4_ad_inpaint_only_masked_padding": 32
}
}' \
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.