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.
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 vetkastar/fooocus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"vetkastar/fooocus:24491069ae2c7d3cc4d6d9ae0dab0b68dfbbb6298fdc84ebb120b3c20ff17754",
{
input: {
prompt: "",
cn_type1: "ImagePrompt",
cn_type2: "ImagePrompt",
cn_type3: "ImagePrompt",
cn_type4: "ImagePrompt",
sharpness: 2,
image_seed: -1,
uov_method: "Disabled",
adaptive_cfg: 7,
image_number: 1,
sampler_name: "dpmpp_2m_sde_gpu",
adm_scaler_end: 0.3,
guidance_scale: 7,
inpaint_engine: "v2.6",
overwrite_step: -1,
refiner_switch: 0.5,
scheduler_name: "karras",
negative_prompt: "",
overwrite_width: -1,
inpaint_strength: 0.5,
overwrite_height: -1,
overwrite_switch: -1,
style_selections: "Fooocus V2,Fooocus Enhance,Fooocus Sharp",
loras_custom_urls: "",
uov_upscale_value: 0,
use_default_loras: true,
adm_scaler_negative: 0.8,
adm_scaler_positive: 1.5,
canny_low_threshold: 64,
controlnet_softness: 0.25,
outpaint_selections: "",
canny_high_threshold: 128,
invert_mask_checkbox: false,
outpaint_distance_top: 0,
performance_selection: "Speed",
outpaint_distance_left: 0,
aspect_ratios_selection: "1152*896",
inpaint_erode_or_dilate: 0,
outpaint_distance_right: 0,
overwrite_vary_strength: -1,
inpaint_respective_field: 1,
outpaint_distance_bottom: 0,
skipping_cn_preprocessor: false,
debugging_cn_preprocessor: false,
inpaint_additional_prompt: "",
overwrite_upscale_strength: -1,
debugging_inpaint_preprocessor: false,
inpaint_disable_initial_latent: false,
mixing_image_prompt_and_inpaint: false,
mixing_image_prompt_and_vary_upscale: false
}
}
);
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 vetkastar/fooocus using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"vetkastar/fooocus:24491069ae2c7d3cc4d6d9ae0dab0b68dfbbb6298fdc84ebb120b3c20ff17754",
input={
"prompt": "",
"cn_type1": "ImagePrompt",
"cn_type2": "ImagePrompt",
"cn_type3": "ImagePrompt",
"cn_type4": "ImagePrompt",
"sharpness": 2,
"image_seed": -1,
"uov_method": "Disabled",
"adaptive_cfg": 7,
"image_number": 1,
"sampler_name": "dpmpp_2m_sde_gpu",
"adm_scaler_end": 0.3,
"guidance_scale": 7,
"inpaint_engine": "v2.6",
"overwrite_step": -1,
"refiner_switch": 0.5,
"scheduler_name": "karras",
"negative_prompt": "",
"overwrite_width": -1,
"inpaint_strength": 0.5,
"overwrite_height": -1,
"overwrite_switch": -1,
"style_selections": "Fooocus V2,Fooocus Enhance,Fooocus Sharp",
"loras_custom_urls": "",
"uov_upscale_value": 0,
"use_default_loras": True,
"adm_scaler_negative": 0.8,
"adm_scaler_positive": 1.5,
"canny_low_threshold": 64,
"controlnet_softness": 0.25,
"outpaint_selections": "",
"canny_high_threshold": 128,
"invert_mask_checkbox": False,
"outpaint_distance_top": 0,
"performance_selection": "Speed",
"outpaint_distance_left": 0,
"aspect_ratios_selection": "1152*896",
"inpaint_erode_or_dilate": 0,
"outpaint_distance_right": 0,
"overwrite_vary_strength": -1,
"inpaint_respective_field": 1,
"outpaint_distance_bottom": 0,
"skipping_cn_preprocessor": False,
"debugging_cn_preprocessor": False,
"inpaint_additional_prompt": "",
"overwrite_upscale_strength": -1,
"debugging_inpaint_preprocessor": False,
"inpaint_disable_initial_latent": False,
"mixing_image_prompt_and_inpaint": False,
"mixing_image_prompt_and_vary_upscale": False
}
)
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/fooocus 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/fooocus:24491069ae2c7d3cc4d6d9ae0dab0b68dfbbb6298fdc84ebb120b3c20ff17754",
"input": {
"prompt": "",
"cn_type1": "ImagePrompt",
"cn_type2": "ImagePrompt",
"cn_type3": "ImagePrompt",
"cn_type4": "ImagePrompt",
"sharpness": 2,
"image_seed": -1,
"uov_method": "Disabled",
"adaptive_cfg": 7,
"image_number": 1,
"sampler_name": "dpmpp_2m_sde_gpu",
"adm_scaler_end": 0.3,
"guidance_scale": 7,
"inpaint_engine": "v2.6",
"overwrite_step": -1,
"refiner_switch": 0.5,
"scheduler_name": "karras",
"negative_prompt": "",
"overwrite_width": -1,
"inpaint_strength": 0.5,
"overwrite_height": -1,
"overwrite_switch": -1,
"style_selections": "Fooocus V2,Fooocus Enhance,Fooocus Sharp",
"loras_custom_urls": "",
"uov_upscale_value": 0,
"use_default_loras": true,
"adm_scaler_negative": 0.8,
"adm_scaler_positive": 1.5,
"canny_low_threshold": 64,
"controlnet_softness": 0.25,
"outpaint_selections": "",
"canny_high_threshold": 128,
"invert_mask_checkbox": false,
"outpaint_distance_top": 0,
"performance_selection": "Speed",
"outpaint_distance_left": 0,
"aspect_ratios_selection": "1152*896",
"inpaint_erode_or_dilate": 0,
"outpaint_distance_right": 0,
"overwrite_vary_strength": -1,
"inpaint_respective_field": 1,
"outpaint_distance_bottom": 0,
"skipping_cn_preprocessor": false,
"debugging_cn_preprocessor": false,
"inpaint_additional_prompt": "",
"overwrite_upscale_strength": -1,
"debugging_inpaint_preprocessor": false,
"inpaint_disable_initial_latent": false,
"mixing_image_prompt_and_inpaint": false,
"mixing_image_prompt_and_vary_upscale": false
}
}' \
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.