vetkastar
/
fooocus-test
- Public
- 13 runs
Run vetkastar/fooocus-test with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
Field | Type | Default value | Description |
---|---|---|---|
prompt |
string
|
|
Prompt for image generation
|
negative_prompt |
string
|
|
Negative prompt for image generation
|
style_selections |
string
|
Fooocus V2,Fooocus Enhance,Fooocus Sharp
|
Fooocus styles applied for image generation, separated by comma
|
performance_selection |
string
(enum)
|
Speed
Options: Speed, Quality, Extreme Speed, Lightning |
Performance selection
|
aspect_ratios_selection |
string
(enum)
|
1152*896
Options: 704*1408, 704*1344, 768*1344, 768*1280, 832*1216, 832*1152, 896*1152, 896*1088, 960*1088, 960*1024, 1024*1024, 1024*960, 1088*960, 1088*896, 1152*896, 1152*832, 1216*832, 1280*768, 1344*768, 1344*704, 1408*704, 1472*704, 1536*640, 1600*640, 1664*576, 1728*576 |
The generated image's size
|
image_number |
integer
|
1
Min: 1 Max: 8 |
How many image to generate
|
image_seed |
integer
|
-1
|
Seed to generate image, -1 for random
|
use_default_loras |
boolean
|
True
|
Use default LoRAs
|
loras_custom_urls |
string
|
|
Custom LoRAs URLs in the format 'url,weight' provide multiple seperated by ; (example 'url1,0.3;url2,0.1')
|
sharpness |
number
|
2
Max: 30 |
None
|
guidance_scale |
number
|
7
Min: 1 Max: 30 |
None
|
refiner_switch |
number
|
0.5
Min: 0.1 Max: 1 |
None
|
uov_input_image |
string
|
Input image for upscale or variation, keep None for not upscale or variation
|
|
uov_method |
string
(enum)
|
Disabled
Options: Disabled, Vary (Subtle), Vary (Strong), Upscale (1.5x), Upscale (2x), Upscale (Fast 2x), Upscale (Custom) |
An enumeration.
|
uov_upscale_value |
number
|
0
|
Only when Upscale (Custom)
|
inpaint_additional_prompt |
string
|
|
Prompt for image generation
|
inpaint_input_image |
string
|
Input image for inpaint or outpaint, keep None for not inpaint or outpaint. Please noticed, `uov_input_image` has bigger priority is not None.
|
|
inpaint_input_mask |
string
|
Input mask for inpaint
|
|
inpaint_strength |
number
|
0.5
Max: 1 |
Inpaint Denoising Strength
|
outpaint_selections |
string
|
|
Outpaint expansion selections, literal 'Left', 'Right', 'Top', 'Bottom' separated by comma
|
outpaint_distance_left |
integer
|
0
|
Outpaint expansion distance from Left of the image
|
outpaint_distance_top |
integer
|
0
|
Outpaint expansion distance from Top of the image
|
outpaint_distance_right |
integer
|
0
|
Outpaint expansion distance from Right of the image
|
outpaint_distance_bottom |
integer
|
0
|
Outpaint expansion distance from Bottom of the image
|
cn_img1 |
string
|
Input image for image prompt. If all cn_img[n] are None, image prompt will not applied.
|
|
cn_stop1 |
number
|
Max: 1 |
Stop at for image prompt, None for default value
|
cn_weight1 |
number
|
Max: 2 |
Weight for image prompt, None for default value
|
cn_type1 |
string
(enum)
|
ImagePrompt
Options: ImagePrompt, FaceSwap, PyraCanny, CPDS |
ControlNet type for image prompt
|
cn_img2 |
string
|
Input image for image prompt. If all cn_img[n] are None, image prompt will not applied.
|
|
cn_stop2 |
number
|
Max: 1 |
Stop at for image prompt, None for default value
|
cn_weight2 |
number
|
Max: 2 |
Weight for image prompt, None for default value
|
cn_type2 |
string
(enum)
|
ImagePrompt
Options: ImagePrompt, FaceSwap, PyraCanny, CPDS |
ControlNet type for image prompt
|
cn_img3 |
string
|
Input image for image prompt. If all cn_img[n] are None, image prompt will not applied.
|
|
cn_stop3 |
number
|
Max: 1 |
Stop at for image prompt, None for default value
|
cn_weight3 |
number
|
Max: 2 |
Weight for image prompt, None for default value
|
cn_type3 |
string
(enum)
|
ImagePrompt
Options: ImagePrompt, FaceSwap, PyraCanny, CPDS |
ControlNet type for image prompt
|
cn_img4 |
string
|
Input image for image prompt. If all cn_img[n] are None, image prompt will not applied.
|
|
cn_stop4 |
number
|
Max: 1 |
Stop at for image prompt, None for default value
|
cn_weight4 |
number
|
Max: 2 |
Weight for image prompt, None for default value
|
cn_type4 |
string
(enum)
|
ImagePrompt
Options: ImagePrompt, FaceSwap, PyraCanny, CPDS |
ControlNet type for image prompt
|
adm_scaler_positive |
number
|
1.5
Min: 0.1 Max: 3 |
Positive ADM Guidance Scaler
|
adm_scaler_negative |
number
|
0.8
Min: 0.1 Max: 3 |
Negative ADM Guidance Scaler
|
adm_scaler_end |
number
|
0.3
Max: 1 |
ADM Guidance End At Step
|
adaptive_cfg |
number
|
7
Min: 1 Max: 30 |
CFG Mimicking from TSNR
|
sampler_name |
string
|
dpmpp_2m_sde_gpu
|
Sampler
|
scheduler_name |
string
|
karras
|
Scheduler
|
overwrite_step |
integer
|
-1
Min: -1 Max: 200 |
Forced Overwrite of Sampling Step
|
overwrite_switch |
number
|
-1
Min: -1 Max: 1 |
Forced Overwrite of Refiner Switch Step
|
overwrite_width |
integer
|
-1
Min: -1 Max: 2048 |
Forced Overwrite of Generating Width
|
overwrite_height |
integer
|
-1
Min: -1 Max: 2048 |
Forced Overwrite of Generating Height
|
overwrite_vary_strength |
number
|
-1
Min: -1 Max: 1 |
Forced Overwrite of Denoising Strength of "Vary"
|
overwrite_upscale_strength |
number
|
-1
Min: -1 Max: 1 |
Forced Overwrite of Denoising Strength of "Upscale"
|
mixing_image_prompt_and_vary_upscale |
boolean
|
False
|
Mixing Image Prompt and Vary/Upscale
|
mixing_image_prompt_and_inpaint |
boolean
|
False
|
Mixing Image Prompt and Inpaint
|
debugging_cn_preprocessor |
boolean
|
False
|
Debug Preprocessors
|
skipping_cn_preprocessor |
boolean
|
False
|
Skip Preprocessors
|
canny_low_threshold |
integer
|
64
Min: 1 Max: 255 |
Canny Low Threshold
|
canny_high_threshold |
integer
|
128
Min: 1 Max: 255 |
Canny High Threshold
|
controlnet_softness |
number
|
0.25
Max: 1 |
Softness of ControlNet
|
debugging_inpaint_preprocessor |
boolean
|
False
|
Debug Inpaint Preprocessing
|
inpaint_disable_initial_latent |
boolean
|
False
|
Disable initial latent in inpaint
|
inpaint_engine |
string
|
v2.6
|
Inpaint Engine
|
inpaint_respective_field |
number
|
1
Max: 1 |
Inpaint Respective Field
|
invert_mask_checkbox |
boolean
|
False
|
Invert Mask
|
inpaint_erode_or_dilate |
integer
|
0
Min: -64 Max: 64 |
Mask Erode or Dilate
|
{
"type": "object",
"title": "Input",
"properties": {
"prompt": {
"type": "string",
"title": "Prompt",
"default": "",
"x-order": 0,
"description": "Prompt for image generation"
},
"cn_img1": {
"type": "string",
"title": "Cn Img1",
"format": "uri",
"x-order": 24,
"description": "Input image for image prompt. If all cn_img[n] are None, image prompt will not applied."
},
"cn_img2": {
"type": "string",
"title": "Cn Img2",
"format": "uri",
"x-order": 28,
"description": "Input image for image prompt. If all cn_img[n] are None, image prompt will not applied."
},
"cn_img3": {
"type": "string",
"title": "Cn Img3",
"format": "uri",
"x-order": 32,
"description": "Input image for image prompt. If all cn_img[n] are None, image prompt will not applied."
},
"cn_img4": {
"type": "string",
"title": "Cn Img4",
"format": "uri",
"x-order": 36,
"description": "Input image for image prompt. If all cn_img[n] are None, image prompt will not applied."
},
"cn_stop1": {
"type": "number",
"title": "Cn Stop1",
"maximum": 1,
"minimum": 0,
"x-order": 25,
"description": "Stop at for image prompt, None for default value"
},
"cn_stop2": {
"type": "number",
"title": "Cn Stop2",
"maximum": 1,
"minimum": 0,
"x-order": 29,
"description": "Stop at for image prompt, None for default value"
},
"cn_stop3": {
"type": "number",
"title": "Cn Stop3",
"maximum": 1,
"minimum": 0,
"x-order": 33,
"description": "Stop at for image prompt, None for default value"
},
"cn_stop4": {
"type": "number",
"title": "Cn Stop4",
"maximum": 1,
"minimum": 0,
"x-order": 37,
"description": "Stop at for image prompt, None for default value"
},
"cn_type1": {
"enum": [
"ImagePrompt",
"FaceSwap",
"PyraCanny",
"CPDS"
],
"type": "string",
"title": "cn_type1",
"description": "ControlNet type for image prompt",
"default": "ImagePrompt",
"x-order": 27
},
"cn_type2": {
"enum": [
"ImagePrompt",
"FaceSwap",
"PyraCanny",
"CPDS"
],
"type": "string",
"title": "cn_type2",
"description": "ControlNet type for image prompt",
"default": "ImagePrompt",
"x-order": 31
},
"cn_type3": {
"enum": [
"ImagePrompt",
"FaceSwap",
"PyraCanny",
"CPDS"
],
"type": "string",
"title": "cn_type3",
"description": "ControlNet type for image prompt",
"default": "ImagePrompt",
"x-order": 35
},
"cn_type4": {
"enum": [
"ImagePrompt",
"FaceSwap",
"PyraCanny",
"CPDS"
],
"type": "string",
"title": "cn_type4",
"description": "ControlNet type for image prompt",
"default": "ImagePrompt",
"x-order": 39
},
"sharpness": {
"type": "number",
"title": "Sharpness",
"default": 2,
"maximum": 30,
"minimum": 0,
"x-order": 9
},
"cn_weight1": {
"type": "number",
"title": "Cn Weight1",
"maximum": 2,
"minimum": 0,
"x-order": 26,
"description": "Weight for image prompt, None for default value"
},
"cn_weight2": {
"type": "number",
"title": "Cn Weight2",
"maximum": 2,
"minimum": 0,
"x-order": 30,
"description": "Weight for image prompt, None for default value"
},
"cn_weight3": {
"type": "number",
"title": "Cn Weight3",
"maximum": 2,
"minimum": 0,
"x-order": 34,
"description": "Weight for image prompt, None for default value"
},
"cn_weight4": {
"type": "number",
"title": "Cn Weight4",
"maximum": 2,
"minimum": 0,
"x-order": 38,
"description": "Weight for image prompt, None for default value"
},
"image_seed": {
"type": "integer",
"title": "Image Seed",
"default": -1,
"x-order": 6,
"description": "Seed to generate image, -1 for random"
},
"uov_method": {
"enum": [
"Disabled",
"Vary (Subtle)",
"Vary (Strong)",
"Upscale (1.5x)",
"Upscale (2x)",
"Upscale (Fast 2x)",
"Upscale (Custom)"
],
"type": "string",
"title": "uov_method",
"description": "An enumeration.",
"default": "Disabled",
"x-order": 13
},
"adaptive_cfg": {
"type": "number",
"title": "Adaptive Cfg",
"default": 7,
"maximum": 30,
"minimum": 1,
"x-order": 43,
"description": "CFG Mimicking from TSNR"
},
"image_number": {
"type": "integer",
"title": "Image Number",
"default": 1,
"maximum": 8,
"minimum": 1,
"x-order": 5,
"description": "How many image to generate"
},
"sampler_name": {
"type": "string",
"title": "Sampler Name",
"default": "dpmpp_2m_sde_gpu",
"x-order": 44,
"description": "Sampler"
},
"adm_scaler_end": {
"type": "number",
"title": "Adm Scaler End",
"default": 0.3,
"maximum": 1,
"minimum": 0,
"x-order": 42,
"description": "ADM Guidance End At Step"
},
"guidance_scale": {
"type": "number",
"title": "Guidance Scale",
"default": 7,
"maximum": 30,
"minimum": 1,
"x-order": 10
},
"inpaint_engine": {
"type": "string",
"title": "Inpaint Engine",
"default": "v2.6",
"x-order": 61,
"description": "Inpaint Engine"
},
"overwrite_step": {
"type": "integer",
"title": "Overwrite Step",
"default": -1,
"maximum": 200,
"minimum": -1,
"x-order": 46,
"description": "Forced Overwrite of Sampling Step"
},
"refiner_switch": {
"type": "number",
"title": "Refiner Switch",
"default": 0.5,
"maximum": 1,
"minimum": 0.1,
"x-order": 11
},
"scheduler_name": {
"type": "string",
"title": "Scheduler Name",
"default": "karras",
"x-order": 45,
"description": "Scheduler"
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"default": "",
"x-order": 1,
"description": "Negative prompt for image generation"
},
"overwrite_width": {
"type": "integer",
"title": "Overwrite Width",
"default": -1,
"maximum": 2048,
"minimum": -1,
"x-order": 48,
"description": "Forced Overwrite of Generating Width"
},
"uov_input_image": {
"type": "string",
"title": "Uov Input Image",
"format": "uri",
"x-order": 12,
"description": "Input image for upscale or variation, keep None for not upscale or variation"
},
"inpaint_strength": {
"type": "number",
"title": "Inpaint Strength",
"default": 0.5,
"maximum": 1,
"minimum": 0,
"x-order": 18,
"description": "Inpaint Denoising Strength"
},
"overwrite_height": {
"type": "integer",
"title": "Overwrite Height",
"default": -1,
"maximum": 2048,
"minimum": -1,
"x-order": 49,
"description": "Forced Overwrite of Generating Height"
},
"overwrite_switch": {
"type": "number",
"title": "Overwrite Switch",
"default": -1,
"maximum": 1,
"minimum": -1,
"x-order": 47,
"description": "Forced Overwrite of Refiner Switch Step"
},
"style_selections": {
"type": "string",
"title": "Style Selections",
"default": "Fooocus V2,Fooocus Enhance,Fooocus Sharp",
"x-order": 2,
"description": "Fooocus styles applied for image generation, separated by comma"
},
"loras_custom_urls": {
"type": "string",
"title": "Loras Custom Urls",
"default": "",
"x-order": 8,
"description": "Custom LoRAs URLs in the format 'url,weight' provide multiple seperated by ; (example 'url1,0.3;url2,0.1')"
},
"uov_upscale_value": {
"type": "number",
"title": "Uov Upscale Value",
"default": 0,
"x-order": 14,
"description": "Only when Upscale (Custom)"
},
"use_default_loras": {
"type": "boolean",
"title": "Use Default Loras",
"default": true,
"x-order": 7,
"description": "Use default LoRAs"
},
"inpaint_input_mask": {
"type": "string",
"title": "Inpaint Input Mask",
"format": "uri",
"x-order": 17,
"description": "Input mask for inpaint"
},
"adm_scaler_negative": {
"type": "number",
"title": "Adm Scaler Negative",
"default": 0.8,
"maximum": 3,
"minimum": 0.1,
"x-order": 41,
"description": "Negative ADM Guidance Scaler"
},
"adm_scaler_positive": {
"type": "number",
"title": "Adm Scaler Positive",
"default": 1.5,
"maximum": 3,
"minimum": 0.1,
"x-order": 40,
"description": "Positive ADM Guidance Scaler"
},
"canny_low_threshold": {
"type": "integer",
"title": "Canny Low Threshold",
"default": 64,
"maximum": 255,
"minimum": 1,
"x-order": 56,
"description": "Canny Low Threshold"
},
"controlnet_softness": {
"type": "number",
"title": "Controlnet Softness",
"default": 0.25,
"maximum": 1,
"minimum": 0,
"x-order": 58,
"description": "Softness of ControlNet"
},
"inpaint_input_image": {
"type": "string",
"title": "Inpaint Input Image",
"format": "uri",
"x-order": 16,
"description": "Input image for inpaint or outpaint, keep None for not inpaint or outpaint. Please noticed, `uov_input_image` has bigger priority is not None."
},
"outpaint_selections": {
"type": "string",
"title": "Outpaint Selections",
"default": "",
"x-order": 19,
"description": "Outpaint expansion selections, literal 'Left', 'Right', 'Top', 'Bottom' separated by comma"
},
"canny_high_threshold": {
"type": "integer",
"title": "Canny High Threshold",
"default": 128,
"maximum": 255,
"minimum": 1,
"x-order": 57,
"description": "Canny High Threshold"
},
"invert_mask_checkbox": {
"type": "boolean",
"title": "Invert Mask Checkbox",
"default": false,
"x-order": 63,
"description": "Invert Mask"
},
"outpaint_distance_top": {
"type": "integer",
"title": "Outpaint Distance Top",
"default": 0,
"x-order": 21,
"description": "Outpaint expansion distance from Top of the image"
},
"performance_selection": {
"enum": [
"Speed",
"Quality",
"Extreme Speed",
"Lightning"
],
"type": "string",
"title": "performance_selection",
"description": "Performance selection",
"default": "Speed",
"x-order": 3
},
"outpaint_distance_left": {
"type": "integer",
"title": "Outpaint Distance Left",
"default": 0,
"x-order": 20,
"description": "Outpaint expansion distance from Left of the image"
},
"aspect_ratios_selection": {
"enum": [
"704*1408",
"704*1344",
"768*1344",
"768*1280",
"832*1216",
"832*1152",
"896*1152",
"896*1088",
"960*1088",
"960*1024",
"1024*1024",
"1024*960",
"1088*960",
"1088*896",
"1152*896",
"1152*832",
"1216*832",
"1280*768",
"1344*768",
"1344*704",
"1408*704",
"1472*704",
"1536*640",
"1600*640",
"1664*576",
"1728*576"
],
"type": "string",
"title": "aspect_ratios_selection",
"description": "The generated image's size",
"default": "1152*896",
"x-order": 4
},
"inpaint_erode_or_dilate": {
"type": "integer",
"title": "Inpaint Erode Or Dilate",
"default": 0,
"maximum": 64,
"minimum": -64,
"x-order": 64,
"description": "Mask Erode or Dilate"
},
"outpaint_distance_right": {
"type": "integer",
"title": "Outpaint Distance Right",
"default": 0,
"x-order": 22,
"description": "Outpaint expansion distance from Right of the image"
},
"overwrite_vary_strength": {
"type": "number",
"title": "Overwrite Vary Strength",
"default": -1,
"maximum": 1,
"minimum": -1,
"x-order": 50,
"description": "Forced Overwrite of Denoising Strength of \"Vary\""
},
"inpaint_respective_field": {
"type": "number",
"title": "Inpaint Respective Field",
"default": 1,
"maximum": 1,
"minimum": 0,
"x-order": 62,
"description": "Inpaint Respective Field"
},
"outpaint_distance_bottom": {
"type": "integer",
"title": "Outpaint Distance Bottom",
"default": 0,
"x-order": 23,
"description": "Outpaint expansion distance from Bottom of the image"
},
"skipping_cn_preprocessor": {
"type": "boolean",
"title": "Skipping Cn Preprocessor",
"default": false,
"x-order": 55,
"description": "Skip Preprocessors"
},
"debugging_cn_preprocessor": {
"type": "boolean",
"title": "Debugging Cn Preprocessor",
"default": false,
"x-order": 54,
"description": "Debug Preprocessors"
},
"inpaint_additional_prompt": {
"type": "string",
"title": "Inpaint Additional Prompt",
"default": "",
"x-order": 15,
"description": "Prompt for image generation"
},
"overwrite_upscale_strength": {
"type": "number",
"title": "Overwrite Upscale Strength",
"default": -1,
"maximum": 1,
"minimum": -1,
"x-order": 51,
"description": "Forced Overwrite of Denoising Strength of \"Upscale\""
},
"debugging_inpaint_preprocessor": {
"type": "boolean",
"title": "Debugging Inpaint Preprocessor",
"default": false,
"x-order": 59,
"description": "Debug Inpaint Preprocessing"
},
"inpaint_disable_initial_latent": {
"type": "boolean",
"title": "Inpaint Disable Initial Latent",
"default": false,
"x-order": 60,
"description": "Disable initial latent in inpaint"
},
"mixing_image_prompt_and_inpaint": {
"type": "boolean",
"title": "Mixing Image Prompt And Inpaint",
"default": false,
"x-order": 53,
"description": "Mixing Image Prompt and Inpaint"
},
"mixing_image_prompt_and_vary_upscale": {
"type": "boolean",
"title": "Mixing Image Prompt And Vary Upscale",
"default": false,
"x-order": 52,
"description": "Mixing Image Prompt and Vary/Upscale"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "object",
"title": "Output",
"required": [
"seeds",
"paths"
],
"properties": {
"paths": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Paths"
},
"seeds": {
"type": "array",
"items": {
"type": "string"
},
"title": "Seeds"
}
},
"description": "Output model"
}