nsfw-api / get-phat
- Public
- 693 runs
Run nsfw-api/get-phat 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.
|
width |
integer
|
1024
Min: 64 Max: 1536 |
None
|
height |
integer
|
1024
Min: 64 Max: 1536 |
None
|
steps |
integer
|
35
Min: 1 Max: 150 |
None
|
cfg |
number
|
4
Min: 1 Max: 20 |
None
|
sampler_name |
string
(enum)
|
dpmpp_2m
Options: dpmpp_2m, euler, euler_ancestral, heun, dpmpp_2s_ancestral |
An enumeration.
|
scheduler |
string
(enum)
|
sgm_uniform
Options: sgm_uniform, normal, karras, exponential |
An enumeration.
|
seed |
integer
|
0
|
0 = random
|
{
"type": "object",
"title": "Input",
"required": [
"prompt"
],
"properties": {
"cfg": {
"type": "number",
"title": "Cfg",
"default": 4,
"maximum": 20,
"minimum": 1,
"x-order": 5
},
"seed": {
"type": "integer",
"title": "Seed",
"default": 0,
"x-order": 8,
"description": "0 = random"
},
"steps": {
"type": "integer",
"title": "Steps",
"default": 35,
"maximum": 150,
"minimum": 1,
"x-order": 4
},
"width": {
"type": "integer",
"title": "Width",
"default": 1024,
"maximum": 1536,
"minimum": 64,
"x-order": 2
},
"height": {
"type": "integer",
"title": "Height",
"default": 1024,
"maximum": 1536,
"minimum": 64,
"x-order": 3
},
"prompt": {
"type": "string",
"title": "Prompt",
"x-order": 0,
"description": "Main text prompt."
},
"scheduler": {
"enum": [
"sgm_uniform",
"normal",
"karras",
"exponential"
],
"type": "string",
"title": "scheduler",
"description": "An enumeration.",
"default": "sgm_uniform",
"x-order": 7
},
"sampler_name": {
"enum": [
"dpmpp_2m",
"euler",
"euler_ancestral",
"heun",
"dpmpp_2s_ancestral"
],
"type": "string",
"title": "sampler_name",
"description": "An enumeration.",
"default": "dpmpp_2m",
"x-order": 6
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"default": "",
"x-order": 1,
"description": "Optional negative."
}
}
}
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"
}