0x101/n002_0
Public
3.1K
runs
Run 0x101/n002_0 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 |
|---|---|---|---|
| init_image |
string
|
기본 입력 이미지 (RGB)
|
|
| mask_image |
string
|
인페인팅 마스크 (흰색=수정, 검은색=유지). 제공 시 Inpaint 모드로 동작.
|
|
| ref_image1 |
string
|
reference image 1
|
|
| ref_image2 |
string
|
reference image 2
|
|
| prompt |
string
|
change the hat to red
|
prompt for image
|
| negative_prompt |
string
|
|
negative
|
| rewrite_prompt |
boolean
|
False
|
hf inference prompt rewrite
|
| num_inference_steps |
integer
|
8
Min: 1 Max: 50 |
steps
|
| true_cfg_scale |
number
|
1
Min: 1 Max: 10 |
프롬프트 충실도(=guidance_scale).
|
| aspect_ratio |
None
|
original
|
output image aspect ratio
|
| height |
integer
|
height of output image
|
|
| width |
integer
|
width of output image
|
|
| num_images_per_prompt |
integer
|
1
Min: 1 Max: 8 |
make how many images
|
| seed |
integer
|
-1
|
seed
|
| ka_token |
string
|
|
KA token.
|
{
"type": "object",
"title": "Input",
"required": [
"init_image"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"default": -1,
"x-order": 13,
"description": "seed"
},
"width": {
"type": "integer",
"title": "Width",
"x-order": 11,
"nullable": true,
"description": "width of output image"
},
"height": {
"type": "integer",
"title": "Height",
"x-order": 10,
"nullable": true,
"description": "height of output image"
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "change the hat to red",
"x-order": 4,
"description": "prompt for image"
},
"ka_token": {
"type": "string",
"title": "Ka Token",
"default": "",
"x-order": 14,
"description": "KA token."
},
"init_image": {
"type": "string",
"title": "Init Image",
"format": "uri",
"x-order": 0,
"description": "\uae30\ubcf8 \uc785\ub825 \uc774\ubbf8\uc9c0 (RGB)"
},
"mask_image": {
"type": "string",
"title": "Mask Image",
"format": "uri",
"x-order": 1,
"nullable": true,
"description": "\uc778\ud398\uc778\ud305 \ub9c8\uc2a4\ud06c (\ud770\uc0c9=\uc218\uc815, \uac80\uc740\uc0c9=\uc720\uc9c0). \uc81c\uacf5 \uc2dc Inpaint \ubaa8\ub4dc\ub85c \ub3d9\uc791."
},
"ref_image1": {
"type": "string",
"title": "Ref Image1",
"format": "uri",
"x-order": 2,
"nullable": true,
"description": "reference image 1"
},
"ref_image2": {
"type": "string",
"title": "Ref Image2",
"format": "uri",
"x-order": 3,
"nullable": true,
"description": "reference image 2"
},
"aspect_ratio": {
"enum": [
"1:1",
"16:9",
"9:16",
"4:3",
"3:4",
"3:2",
"2:3",
"original"
],
"type": "string",
"title": "aspect_ratio",
"description": "output image aspect ratio",
"default": "original",
"x-order": 9
},
"rewrite_prompt": {
"type": "boolean",
"title": "Rewrite Prompt",
"default": false,
"x-order": 6,
"description": "hf inference prompt rewrite"
},
"true_cfg_scale": {
"type": "number",
"title": "True Cfg Scale",
"default": 1,
"maximum": 10,
"minimum": 1,
"x-order": 8,
"description": "\ud504\ub86c\ud504\ud2b8 \ucda9\uc2e4\ub3c4(=guidance_scale)."
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"default": "",
"x-order": 5,
"description": "negative"
},
"num_inference_steps": {
"type": "integer",
"title": "Num Inference Steps",
"default": 8,
"maximum": 50,
"minimum": 1,
"x-order": 7,
"description": "steps"
},
"num_images_per_prompt": {
"type": "integer",
"title": "Num Images Per Prompt",
"default": 1,
"maximum": 8,
"minimum": 1,
"x-order": 12,
"description": "make how many images"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "string",
"title": "Output",
"format": "uri"
}