
sergeishapovalov/forge
Run sergeishapovalov/forge 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
|
|
negative_prompt |
string
|
|
Negative Prompt (для Flux рекомендуется оставить пустым и использовать Distilled CFG)
|
width |
integer
|
512
Min: 1 Max: 1024 |
Width of output image
|
height |
integer
|
768
Min: 1 Max: 1024 |
Height of output image
|
num_outputs |
integer
|
1
Min: 1 Max: 4 |
Number of images to output
|
sampler |
None
|
[Forge] Flux Realistic
|
Sampling method для Flux моделей
|
scheduler |
None
|
Simple
|
Schedule type для Flux моделей
|
num_inference_steps |
integer
|
20
Min: 1 Max: 100 |
Number of denoising steps
|
guidance_scale |
number
|
1
Min: 1 Max: 50 |
CFG Scale (для Flux рекомендуется значение 1.0)
|
distilled_guidance_scale |
number
|
3.5
Max: 30 |
Distilled CFG Scale (основной параметр для Flux, рекомендуется 3.5)
|
seed |
integer
|
-1
|
Random seed. Leave blank to randomize the seed
|
enable_hr |
boolean
|
False
|
Hires. fix
|
hr_upscaler |
None
|
Latent
|
Upscaler for Hires. fix
|
hr_steps |
integer
|
20
Max: 100 |
Inference steps for Hires. fix
|
hr_scale |
number
|
2
Min: 1 Max: 4 |
Factor to scale image by
|
denoising_strength |
number
|
0.5
Max: 1 |
Denoising strength. 1.0 corresponds to full destruction of information in init image
|
enable_adetailer |
boolean
|
False
|
ADetailer (не рекомендуется для Flux моделей)
|
lora_urls |
string
|
|
Ссылки на LoRA файлы, разделенные запятыми (например, https://example.com/lora1.safetensors,https://example.com/lora2.safetensors)
|
lora_weights |
string
|
|
Веса для каждой LoRA от 0 до 1, разделенные запятыми (например, 0.7,0.5). Должно соответствовать количеству LoRA
|
{
"type": "object",
"title": "Input",
"required": [
"prompt"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"default": -1,
"x-order": 10,
"description": "Random seed. Leave blank to randomize the seed"
},
"width": {
"type": "integer",
"title": "Width",
"default": 512,
"maximum": 1024,
"minimum": 1,
"x-order": 2,
"description": "Width of output image"
},
"height": {
"type": "integer",
"title": "Height",
"default": 768,
"maximum": 1024,
"minimum": 1,
"x-order": 3,
"description": "Height of output image"
},
"prompt": {
"type": "string",
"title": "Prompt",
"x-order": 0,
"description": "Prompt"
},
"sampler": {
"enum": [
"[Forge] Flux Realistic",
"Euler",
"Euler a",
"DPM++ 2M",
"DPM++ SDE",
"DPM++ 2M SDE",
"DPM++ 2M SDE Karras",
"DPM++ 2M SDE Exponential",
"DPM++ 3M SDE",
"DPM++ 3M SDE Karras",
"DPM++ 3M SDE Exponential"
],
"type": "string",
"title": "sampler",
"description": "Sampling method \u0434\u043b\u044f Flux \u043c\u043e\u0434\u0435\u043b\u0435\u0439",
"default": "[Forge] Flux Realistic",
"x-order": 5
},
"hr_scale": {
"type": "number",
"title": "Hr Scale",
"default": 2,
"maximum": 4,
"minimum": 1,
"x-order": 14,
"description": "Factor to scale image by"
},
"hr_steps": {
"type": "integer",
"title": "Hr Steps",
"default": 20,
"maximum": 100,
"minimum": 0,
"x-order": 13,
"description": "Inference steps for Hires. fix"
},
"enable_hr": {
"type": "boolean",
"title": "Enable Hr",
"default": false,
"x-order": 11,
"description": "Hires. fix"
},
"lora_urls": {
"type": "string",
"title": "Lora Urls",
"default": "",
"x-order": 17,
"description": "\u0421\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 LoRA \u0444\u0430\u0439\u043b\u044b, \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0437\u0430\u043f\u044f\u0442\u044b\u043c\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, https://example.com/lora1.safetensors,https://example.com/lora2.safetensors)"
},
"scheduler": {
"enum": [
"Simple",
"Karras",
"Exponential",
"SGM Uniform",
"SGM Karras",
"SGM Exponential",
"Align Your Steps",
"Align Your Steps 11",
"Align Your Steps 32",
"Align Your Steps GITS",
"KL Optimal",
"Normal",
"DDIM",
"Beta",
"Turbo"
],
"type": "string",
"title": "scheduler",
"description": "Schedule type \u0434\u043b\u044f Flux \u043c\u043e\u0434\u0435\u043b\u0435\u0439",
"default": "Simple",
"x-order": 6
},
"hr_upscaler": {
"enum": [
"Latent",
"Latent (antialiased)",
"Latent (bicubic)",
"Latent (bicubic antialiased)",
"Latent (nearest)",
"Latent (nearest-exact)",
"None",
"Lanczos",
"Nearest",
"ESRGAN_4x",
"LDSR",
"R-ESRGAN 4x+",
"R-ESRGAN 4x+ Anime6B",
"ScuNET GAN",
"ScuNET PSNR",
"SwinIR 4x"
],
"type": "string",
"title": "hr_upscaler",
"description": "Upscaler for Hires. fix",
"default": "Latent",
"x-order": 12
},
"num_outputs": {
"type": "integer",
"title": "Num Outputs",
"default": 1,
"maximum": 4,
"minimum": 1,
"x-order": 4,
"description": "Number of images to output"
},
"lora_weights": {
"type": "string",
"title": "Lora Weights",
"default": "",
"x-order": 18,
"description": "\u0412\u0435\u0441\u0430 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 LoRA \u043e\u0442 0 \u0434\u043e 1, \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0437\u0430\u043f\u044f\u0442\u044b\u043c\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, 0.7,0.5). \u0414\u043e\u043b\u0436\u043d\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 LoRA"
},
"guidance_scale": {
"type": "number",
"title": "Guidance Scale",
"default": 1,
"maximum": 50,
"minimum": 1,
"x-order": 8,
"description": "CFG Scale (\u0434\u043b\u044f Flux \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 1.0)"
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"default": "",
"x-order": 1,
"description": "Negative Prompt (\u0434\u043b\u044f Flux \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0443\u0441\u0442\u044b\u043c \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Distilled CFG)"
},
"enable_adetailer": {
"type": "boolean",
"title": "Enable Adetailer",
"default": false,
"x-order": 16,
"description": "ADetailer (\u043d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f Flux \u043c\u043e\u0434\u0435\u043b\u0435\u0439)"
},
"denoising_strength": {
"type": "number",
"title": "Denoising Strength",
"default": 0.5,
"maximum": 1,
"minimum": 0,
"x-order": 15,
"description": "Denoising strength. 1.0 corresponds to full destruction of information in init image"
},
"num_inference_steps": {
"type": "integer",
"title": "Num Inference Steps",
"default": 20,
"maximum": 100,
"minimum": 1,
"x-order": 7,
"description": "Number of denoising steps"
},
"distilled_guidance_scale": {
"type": "number",
"title": "Distilled Guidance Scale",
"default": 3.5,
"maximum": 30,
"minimum": 0,
"x-order": 9,
"description": "Distilled CFG Scale (\u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0434\u043b\u044f Flux, \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f 3.5)"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Output"
}