lightweight-ai/m_q_e_t
Public
1.6K
runs
Run lightweight-ai/m_q_e_t 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
|
(선택) EditPlus 모드에서 추가 참조 이미지 1
|
|
| ref_image2 |
string
|
(선택) EditPlus 모드에서 추가 참조 이미지 2
|
|
| prompt |
string
|
change the hat to red
|
편집/인페인팅 프롬프트 (간결 권장).
|
| negative_prompt |
string
|
|
원치 않는 요소(예: ugly, blurry, artifacts). 빈 값 가능.
|
| rewrite_prompt |
boolean
|
False
|
HF Inference로 프롬프트 간단 리라이트(HF_TOKEN 필요).
|
| num_inference_steps |
integer
|
8
Min: 1 Max: 50 |
디퓨전 스텝 수 (Lightning는 8 권장).
|
| true_cfg_scale |
number
|
1
Min: 1 Max: 10 |
프롬프트 충실도(=guidance_scale).
|
| aspect_ratio |
None
|
original
|
출력 이미지의 화면 비율. 입력이 없거나 'original'이면 init_image 크기를 사용합니다.
|
| height |
integer
|
(선택) 출력 높이. None이면 자동 결정.
|
|
| width |
integer
|
(선택) 출력 너비. None이면 자동 결정.
|
|
| num_images_per_prompt |
integer
|
1
Min: 1 Max: 8 |
한 번에 생성할 이미지 수 (EditPlus에서 유효).
|
| seed |
integer
|
42
|
랜덤 시드(재현성).
|
{
"type": "object",
"title": "Input",
"required": [
"init_image"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"default": 42,
"x-order": 13,
"description": "\ub79c\ub364 \uc2dc\ub4dc(\uc7ac\ud604\uc131)."
},
"width": {
"type": "integer",
"title": "Width",
"x-order": 11,
"nullable": true,
"description": "(\uc120\ud0dd) \ucd9c\ub825 \ub108\ube44. None\uc774\uba74 \uc790\ub3d9 \uacb0\uc815."
},
"height": {
"type": "integer",
"title": "Height",
"x-order": 10,
"nullable": true,
"description": "(\uc120\ud0dd) \ucd9c\ub825 \ub192\uc774. None\uc774\uba74 \uc790\ub3d9 \uacb0\uc815."
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "change the hat to red",
"x-order": 4,
"description": "\ud3b8\uc9d1/\uc778\ud398\uc778\ud305 \ud504\ub86c\ud504\ud2b8 (\uac04\uacb0 \uad8c\uc7a5)."
},
"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": "(\uc120\ud0dd) EditPlus \ubaa8\ub4dc\uc5d0\uc11c \ucd94\uac00 \ucc38\uc870 \uc774\ubbf8\uc9c0 1"
},
"ref_image2": {
"type": "string",
"title": "Ref Image2",
"format": "uri",
"x-order": 3,
"nullable": true,
"description": "(\uc120\ud0dd) EditPlus \ubaa8\ub4dc\uc5d0\uc11c \ucd94\uac00 \ucc38\uc870 \uc774\ubbf8\uc9c0 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": "\ucd9c\ub825 \uc774\ubbf8\uc9c0\uc758 \ud654\uba74 \ube44\uc728. \uc785\ub825\uc774 \uc5c6\uac70\ub098 'original'\uc774\uba74 init_image \ud06c\uae30\ub97c \uc0ac\uc6a9\ud569\ub2c8\ub2e4.",
"default": "original",
"x-order": 9
},
"rewrite_prompt": {
"type": "boolean",
"title": "Rewrite Prompt",
"default": false,
"x-order": 6,
"description": "HF Inference\ub85c \ud504\ub86c\ud504\ud2b8 \uac04\ub2e8 \ub9ac\ub77c\uc774\ud2b8(HF_TOKEN \ud544\uc694)."
},
"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": "\uc6d0\uce58 \uc54a\ub294 \uc694\uc18c(\uc608: ugly, blurry, artifacts). \ube48 \uac12 \uac00\ub2a5."
},
"num_inference_steps": {
"type": "integer",
"title": "Num Inference Steps",
"default": 8,
"maximum": 50,
"minimum": 1,
"x-order": 7,
"description": "\ub514\ud4e8\uc804 \uc2a4\ud15d \uc218 (Lightning\ub294 8 \uad8c\uc7a5)."
},
"num_images_per_prompt": {
"type": "integer",
"title": "Num Images Per Prompt",
"default": 1,
"maximum": 8,
"minimum": 1,
"x-order": 12,
"description": "\ud55c \ubc88\uc5d0 \uc0dd\uc131\ud560 \uc774\ubbf8\uc9c0 \uc218 (EditPlus\uc5d0\uc11c \uc720\ud6a8)."
}
}
}
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"
}