nsfw-api / realvis-hyper-lora
- Public
- 520 runs
Run nsfw-api/realvis-hyper-lora 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
|
Main text prompt for generation.
|
|
negative_prompt |
string
|
lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry
|
Negative prompt.
|
reference_image |
string
|
Reference image containing the face/identity you want to preserve in the generation.
|
|
width |
integer
|
768
Min: 64 Max: 1536 |
None
|
height |
integer
|
1024
Min: 64 Max: 1536 |
None
|
steps |
integer
|
30
Min: 1 Max: 150 |
None
|
cfg |
number
|
7
Min: 1 Max: 20 |
None
|
sampler_name |
string
(enum)
|
dpmpp_2m
Options: euler, euler_ancestral, heun, dpmpp_2s_ancestral, dpmpp_2m, dpmpp_2m_sde, dpmpp_sde, uni_pc |
An enumeration.
|
scheduler |
string
(enum)
|
karras
Options: normal, karras |
An enumeration.
|
seed |
integer
|
0
|
0 = random
|
hyperlora_weight |
number
|
0.5
Max: 1 |
Weight of the HyperLoRA identity effect (0.0 to 1.0)
|
instantid_weight |
number
|
0.5
Max: 1 |
Weight of the InstantID effect (0.0 to 1.0)
|
facedetail_strength |
number
|
0.35
Max: 1 |
Strength of face detail enhancement
|
{
"type": "object",
"title": "Input",
"required": [
"prompt",
"reference_image"
],
"properties": {
"cfg": {
"type": "number",
"title": "Cfg",
"default": 7,
"maximum": 20,
"minimum": 1,
"x-order": 6
},
"seed": {
"type": "integer",
"title": "Seed",
"default": 0,
"x-order": 9,
"description": "0 = random"
},
"steps": {
"type": "integer",
"title": "Steps",
"default": 30,
"maximum": 150,
"minimum": 1,
"x-order": 5
},
"width": {
"type": "integer",
"title": "Width",
"default": 768,
"maximum": 1536,
"minimum": 64,
"x-order": 3
},
"height": {
"type": "integer",
"title": "Height",
"default": 1024,
"maximum": 1536,
"minimum": 64,
"x-order": 4
},
"prompt": {
"type": "string",
"title": "Prompt",
"x-order": 0,
"description": "Main text prompt for generation."
},
"scheduler": {
"enum": [
"normal",
"karras"
],
"type": "string",
"title": "scheduler",
"description": "An enumeration.",
"default": "karras",
"x-order": 8
},
"sampler_name": {
"enum": [
"euler",
"euler_ancestral",
"heun",
"dpmpp_2s_ancestral",
"dpmpp_2m",
"dpmpp_2m_sde",
"dpmpp_sde",
"uni_pc"
],
"type": "string",
"title": "sampler_name",
"description": "An enumeration.",
"default": "dpmpp_2m",
"x-order": 7
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"default": "lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry",
"x-order": 1,
"description": "Negative prompt."
},
"reference_image": {
"type": "string",
"title": "Reference Image",
"format": "uri",
"x-order": 2,
"description": "Reference image containing the face/identity you want to preserve in the generation."
},
"hyperlora_weight": {
"type": "number",
"title": "Hyperlora Weight",
"default": 0.5,
"maximum": 1,
"minimum": 0,
"x-order": 10,
"description": "Weight of the HyperLoRA identity effect (0.0 to 1.0)"
},
"instantid_weight": {
"type": "number",
"title": "Instantid Weight",
"default": 0.5,
"maximum": 1,
"minimum": 0,
"x-order": 11,
"description": "Weight of the InstantID effect (0.0 to 1.0)"
},
"facedetail_strength": {
"type": "number",
"title": "Facedetail Strength",
"default": 0.35,
"maximum": 1,
"minimum": 0,
"x-order": 12,
"description": "Strength of face detail enhancement"
}
}
}
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"
}