sergeishapovalov/forge

Public
115 runs

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

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{
  "type": "array",
  "items": {
    "type": "string",
    "format": "uri"
  },
  "title": "Output"
}