usamaehsan
/
flux-controlnet
- Public
- 0 runs
Run usamaehsan/flux-controlnet 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
|
A girl in city, 25 years old, cool, futuristic
|
Input prompt
|
controlnet_type |
string
(enum)
|
canny
Options: upscaler, lineart, canny, depth |
Type of ControlNet to use
|
control_image |
string
|
Input image for ControlNet
|
|
guidance_scale |
number
|
3.5
Max: 20 |
Guidance scale
|
steps |
integer
|
8
Min: 1 Max: 50 |
Number of inference steps
|
seed |
integer
|
Set a seed for reproducibility. Random by default.
|
|
control_strength |
number
|
0.6
Max: 2 |
ControlNet strength
|
hyperflex_lora_weight |
number
|
0.125
Max: 1 |
HyperFlex LoRA weight
|
add_details_lora_weight |
number
|
0
Max: 1 |
Add Details LoRA weight
|
realism_lora_weight |
number
|
0
Max: 1 |
Realism LoRA weight
|
widthh |
integer
|
0
Max: 5000 |
width
|
heightt |
integer
|
0
Max: 5000 |
height
|
{
"type": "object",
"title": "Input",
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"x-order": 5,
"description": "Set a seed for reproducibility. Random by default."
},
"steps": {
"type": "integer",
"title": "Steps",
"default": 8,
"maximum": 50,
"minimum": 1,
"x-order": 4,
"description": "Number of inference steps"
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "A girl in city, 25 years old, cool, futuristic",
"x-order": 0,
"description": "Input prompt"
},
"widthh": {
"type": "integer",
"title": "Widthh",
"default": 0,
"maximum": 5000,
"minimum": 0,
"x-order": 10,
"description": "width"
},
"heightt": {
"type": "integer",
"title": "Heightt",
"default": 0,
"maximum": 5000,
"minimum": 0,
"x-order": 11,
"description": "height"
},
"control_image": {
"type": "string",
"title": "Control Image",
"format": "uri",
"x-order": 2,
"description": "Input image for ControlNet"
},
"guidance_scale": {
"type": "number",
"title": "Guidance Scale",
"default": 3.5,
"maximum": 20,
"minimum": 0,
"x-order": 3,
"description": "Guidance scale"
},
"controlnet_type": {
"enum": [
"upscaler",
"lineart",
"canny",
"depth"
],
"type": "string",
"title": "controlnet_type",
"description": "Type of ControlNet to use",
"default": "canny",
"x-order": 1
},
"control_strength": {
"type": "number",
"title": "Control Strength",
"default": 0.6,
"maximum": 2,
"minimum": 0,
"x-order": 6,
"description": "ControlNet strength"
},
"realism_lora_weight": {
"type": "number",
"title": "Realism Lora Weight",
"default": 0,
"maximum": 1,
"minimum": 0,
"x-order": 9,
"description": "Realism LoRA weight"
},
"hyperflex_lora_weight": {
"type": "number",
"title": "Hyperflex Lora Weight",
"default": 0.125,
"maximum": 1,
"minimum": 0,
"x-order": 7,
"description": "HyperFlex LoRA weight"
},
"add_details_lora_weight": {
"type": "number",
"title": "Add Details Lora Weight",
"default": 0,
"maximum": 1,
"minimum": 0,
"x-order": 8,
"description": "Add Details LoRA weight"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "string",
"title": "Output",
"format": "uri"
}