nsfw-api / sdxl-pulid
- Public
- 150 runs
Run nsfw-api/sdxl-pulid 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.
|
|
negative_prompt |
string
|
|
Optional negative.
|
reference_image |
string
|
An image containing a face that you want to use as reference for face swapping.
|
|
width |
integer
|
512
Min: 64 Max: 1536 |
None
|
height |
integer
|
512
Min: 64 Max: 1536 |
None
|
steps |
integer
|
30
Min: 1 Max: 150 |
None
|
cfg |
number
|
3
Min: 1 Max: 20 |
None
|
sampler_name |
string
(enum)
|
euler_ancestral
Options: euler, euler_ancestral, heun, dpmpp_2s_ancestral, uni_pc |
An enumeration.
|
scheduler |
string
(enum)
|
normal
Options: beta, normal |
An enumeration.
|
seed |
integer
|
0
|
0 = random
|
method |
string
(enum)
|
fidelity
Options: fidelity, style, both |
PuLID method to use: fidelity for face swapping, style for style transfer, both for a mix.
|
face_weight |
number
|
0.8
Max: 1 |
Weight of the face adaptation effect (0.0 to 1.0)
|
depth_image |
string
|
RGB image that will be converted to a depth map and used as ControlNet guidance.
|
|
depth_strength |
number
|
1
Max: 2 |
How strongly the depth map constrains generation.
|
{
"type": "object",
"title": "Input",
"required": [
"prompt"
],
"properties": {
"cfg": {
"type": "number",
"title": "Cfg",
"default": 3,
"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": 512,
"maximum": 1536,
"minimum": 64,
"x-order": 3
},
"height": {
"type": "integer",
"title": "Height",
"default": 512,
"maximum": 1536,
"minimum": 64,
"x-order": 4
},
"method": {
"enum": [
"fidelity",
"style",
"both"
],
"type": "string",
"title": "method",
"description": "PuLID method to use: fidelity for face swapping, style for style transfer, both for a mix.",
"default": "fidelity",
"x-order": 10
},
"prompt": {
"type": "string",
"title": "Prompt",
"x-order": 0,
"description": "Main text prompt."
},
"scheduler": {
"enum": [
"beta",
"normal"
],
"type": "string",
"title": "scheduler",
"description": "An enumeration.",
"default": "normal",
"x-order": 8
},
"depth_image": {
"type": "string",
"title": "Depth Image",
"format": "uri",
"x-order": 12,
"description": "RGB image that will be converted to a depth map and used as ControlNet guidance."
},
"face_weight": {
"type": "number",
"title": "Face Weight",
"default": 0.8,
"maximum": 1,
"minimum": 0,
"x-order": 11,
"description": "Weight of the face adaptation effect (0.0 to 1.0)"
},
"sampler_name": {
"enum": [
"euler",
"euler_ancestral",
"heun",
"dpmpp_2s_ancestral",
"uni_pc"
],
"type": "string",
"title": "sampler_name",
"description": "An enumeration.",
"default": "euler_ancestral",
"x-order": 7
},
"depth_strength": {
"type": "number",
"title": "Depth Strength",
"default": 1,
"maximum": 2,
"minimum": 0,
"x-order": 13,
"description": "How strongly the depth map constrains generation."
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"default": "",
"x-order": 1,
"description": "Optional negative."
},
"reference_image": {
"type": "string",
"title": "Reference Image",
"format": "uri",
"x-order": 2,
"description": "An image containing a face that you want to use as reference for face swapping."
}
}
}
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"
}