์ด ๋ฌธ์๋ ์น์์์ ๋์ผํ ๊ฒฐ๊ณผ๋ฅผ ์ป๊ธฐ ์ํด ์ฝ๋๋ฅผ ์ฌ์ฉํ๋ ๋ฐฉ๋ฒ์ ์ค๋ช ํฉ๋๋ค. ๋ฌธ์ ์ดํ์๋ ์๋ ์ฃผ์ API๋ง ์ ๊ณตํ๋ฉฐ, ๊ธฐ๋ณธ ๋๋ฉ์ธ ์ด๋ฆ์ ํจ๊ป ๊ตฌ์ฑํด์ผ ํฉ๋๋ค. https://api.aitubo.ai.
์๋ฅผ ๋ค์ด, ์์ ์ ์์ฑํ๋ ค๋ฉด ๋ค์์ ํธ์ถํด์ผ ํฉ๋๋ค. https://api.aitubo.ai/api/job/create
์ด ๋ฌธ์๋ ์์์ ํน์ API์ ๋ ์น์ ์ผ๋ก ๋๋ฉ๋๋ค.
์ด ์น์ ์์๋ ์์ ์ ์์ฑํ๊ณ ์ป๋ ๋ฐฉ๋ฒ์ ์ค๋ช ํฉ๋๋ค. ์์ ์ ์์ฑํ๊ธฐ ์ํ API๋ ์ธ ๊ฐ์ง ํต์ฌ ๊ธฐ๋ฅ์ ์ ๊ณตํฉ๋๋ค. Text2Image, Image2Image, and ControlNet(ControlNet์ ์ถ๊ฐ ์กฐ๊ฑด์ ์ถ๊ฐํ์ฌ ํ์ฐ ๋ชจ๋ธ์ ์ ์ดํ๋ ์ ๊ฒฝ๋ง ๊ตฌ์กฐ์ ๋๋ค).
์ธ ๊ฐ์ง ๊ธฐ๋ฅ ์ค ์ด๋ ๊ฒ์ ์ฌ์ฉํ๋ ๋จผ์ ์ง์ํ๋ ๋ชจ๋ธ ๋ชฉ๋ก์ ์ป์ด์ผ ํ๋ฉฐ, ์์ ์ ์์ฑํ ๋ ๋ค์์ ์ ๋ฌํด์ผ ํฉ๋๋ค. id ๋ชจ๋ธ ์ ๋ณด ํ๋
curl --request GET \
--url 'https://api.aitubo.ai/api/model/list?type=platform' \
--header 'Authorization: Bearer ced695cfd83811eda5e286850d1dc848'
๊ฒฐ๊ณผ๋ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
{
"code": 0,
"data": {
"domain": "https://file.aitubo.ai/",
"total": 10,
"models": [
{
"id": "6426f9c60ca4651b98b91a6d",
"name": "ConceptCanvas",
"username": "Aitubo",
"desc": "A model that creates concept scenes with a European thick paint or CG style.",
"cover": "assets/model/6426f9c60ca4651b98b91a6d/cover.jpg",
"isFavourite": false,
"controlNet": false
},
{
"id": "642b977d2f2842537c09fe41",
"name": "DreamShaper",
"username": "Aitubo",
"desc": "A model that can generate multiple styles of scenes, characters, and game assets.",
"cover": "assets/model/642b977d2f2842537c09fe41/cover.jpg",
"isFavourite": false,
"controlNet": true
},
...
]
}
}
curl --request POST \
--url https://api.aitubo.ai/api/job/create \
--header 'Authorization: Bearer ced695cfd83811eda5e286850d1dc848' \
--header 'content-type: application/json' \
--data '{
"prompt": "A cat sleeps on the plane",
"modelId": "642b977d2f2842537c09fe41"
}
๊ทธ๋ฐ ๋ค์ ๋ค์๊ณผ ๊ฐ์ ์๋ต์ ๋ฐ๊ฒ ๋ฉ๋๋ค.
{
"code": 0,
"data": {
"consumedCredit": 40,
"credit": 120,
"id": "64351e4d567bcd86773dc841"
}
}
ํด๋ง์ ํตํด ์์ ์์ฑ ์ํ๋ฅผ ํ์ธํ ์ ์์ต๋๋ค. ๊ฐ ์ฌ์ง์ ์๋ฃํ๋ ๋ฐ ์ฝ 2์ด๊ฐ ๊ฑธ๋ฆฌ๋ฏ๋ก ์ฟผ๋ฆฌ ๋น๋๋ฅผ ์ ์ดํ์ญ์์ค. ๋ง์ง๋ง์ผ๋ก ๋ค์๊ณผ ๊ฐ์ ๊ฒฐ๊ณผ๋ฅผ ์ป๊ฒ ๋ฉ๋๋ค.
{
"code": 0,
"data": {
"id": "64351e4d567bcd86773dc841",
"args": {
"prompt": "A cat sleeps on the plane",
"negativePrompt": "lowres, bad anatomy, cropped, worst quality, low quality",
"strength": 0.8,
"width": 512,
"height": 512,
"count": 4,
"steps": 30,
"modelId": "642b977d2f2842537c09fe41"
},
"result": {
"info": "Warning: some images may contain NSFW content",
"data": {
"images": [
"images/art/640076a4661aa1c0f81ba2d7/cgqhsljj5mf00080001g.png",
"images/art/640076a4661aa1c0f81ba2d7/cgqhsljj5mf000800020.png",
"images/art/640076a4661aa1c0f81ba2d7/cgqhsljj5mf00080002g.png",
"images/art/640076a4661aa1c0f81ba2d7/cgqhsljj5mf000800030.png"
],
"artIds": [
"64351e56567bcd86773dc842",
"64351e56567bcd86773dc843",
"64351e56567bcd86773dc844",
"64351e56567bcd86773dc845"
],
"domain": "https://file.aitubo.ai/"
}
},
"status": 2,
"createAt": "2023-04-11T08:46:05.55Z"
}
}
Image2Image๋ฅผ ์ฌ์ฉํ๋ ค๋ฉด ๋ค์์ ํธ์ถํ ์ ์์ต๋๋ค. ์ด๋ฏธ์ง ์ ๋ก๋ API๋ฅผ ์ฌ์ฉํ์ฌ ์ด๋ฏธ์ง์ OSS ์๋ ์ฃผ์๋ฅผ ์ป๊ฑฐ๋ ์ ๋ ์ฃผ์๊ฐ ์๋ ์ด๋ฏธ์ง๋ฅผ ์ ๊ณตํ ์ ์์ต๋๋ค.
curl --request POST \
--url https://api.aitubo.ai/api/job/create \
--header 'Authorization: Bearer ced695cfd83811eda5e286850d1dc848' \
--header 'content-type: application/json' \
--data '{
"imagePath": "images/tmp/cgqi1jntuq4000800040.png",
"modelId": "642b977d2f2842537c09fe41",
"prompt": "scene",
"guidanceScale": 0.7
}'
Text2Image์ ๋ง์ฐฌ๊ฐ์ง๋ก ํด๋ง์ ํตํด ์์ ์์ฑ ์ํ๋ฅผ ํ์ธํ ์ ์์ต๋๋ค.
ControlNet ๊ธฐ๋ฅ์ ์ฌ์ฉํ๊ธฐ ์ ์ ๋จผ์ /job/model/list API๋ฅผ ํธ์ถํ์ฌ ํด๋น ControlNet ๋ฒ์ฃผ๋ฅผ ์ป์ด์ผ ํฉ๋๋ค.
{
"code": 0,
"data": {
"domain": "https://file.aitubo.ai/",
"models": [
{
"id": "canny",
"name": "canny",
"icon": "assets/template/control_canny.jpg"
},
{
"id": "scribble",
"name": "scribble",
"icon": "assets/template/control_scribble.jpg"
},
...
}
}
๊ทธ๋ฐ ๋ค์ /job/create API๋ฅผ ํธ์ถํฉ๋๋ค.
curl --request POST \
--url https://api.aitubo.ai/api/job/create \
--header 'Authorization: Bearer ced695cfd83811eda5e286850d1dc848' \
--header 'content-type: application/json' \
--data '{ "imagePath": "https://ichef.bbci.co.uk/news/976/cpsprodpb/17638/production/_124800859_gettyimages-817514614.jpg.webp",
"controlModel": "canny",
"prompt": "a little dog"
}'
๋ค์๋ ์ ๋ฌํ ์ ์์ต๋๋ค. modelId field(๋ชจ๋ธ์ด ControlNet์ ์ง์ํ๋์ง ํ์ธํ์ญ์์ค.):
curl --request POST \
--url https://api.aitubo.ai/api/job/create \
--header 'Authorization: Bearer ced695cfd83811eda5e286850d1dc848' \
--header 'content-type: application/json' \
--data '{
"imagePath": "https://ichef.bbci.co.uk/news/976/cpsprodpb/17638/production/_124800859_gettyimages-817514614.jpg.webp",
"controlModel": "canny",
"prompt": "a little dog",
"modelId": "642b977d2f2842537c09fe41"
}'
๊ฒฝ๋ก๏ผ /api/job/upload-image
๋ฐฉ๋ฒ๏ผ POST
ํค๋
์ด๋ฆ | ๊ฐ | ํ์ | ์์ |
---|---|---|---|
Content-Type | multipart/form-data | ์ | |
Authorization | Bearer {YOUR KEY} | ์ | Bearer 37f333a2d5f811edb248acde48001122 |
๋ณธ๋ฌธ
์ด๋ฆ | ๊ฐ | ํ์ |
---|---|---|
image | file | ์ |
์ด๋ฆ | ์ ํ | ํ์ | ๊ธฐ๋ณธ๊ฐ | ์ฐธ๊ณ | ๊ธฐํ |
---|---|---|---|---|---|
code | integer | ์ | code=0 -> ์ฑ๊ณต | ||
info | string | ์๋์ | ์ค๋ฅ ์ ๋ณด | ||
data | object | ์๋์ | |||
โโpath | string | ์๋์ | AliYun OSS์ ์ด๋ฏธ์ง ๊ฒฝ๋ก |
๊ฒฝ๋ก๏ผ /api/job/create
๋ฐฉ๋ฒ๏ผ POST
ํค๋
์ด๋ฆ | ๊ฐ | ํ์ | ์์ |
---|---|---|---|
Content-Type | application/json | ์ | |
Authorization | Bearer {YOUR KEY} | ์ | Bearer 37f333a2d5f811edb248acde48001122 |
๋ณธ๋ฌธ
์ด๋ฆ | ์ ํ | ํ์ | ๊ธฐ๋ณธ๊ฐ | ์ฐธ๊ณ | ๊ธฐํ |
---|---|---|---|---|---|
imagePath | string | ์๋์ | ์ ๋ก๋๋ ์ด๋ฏธ์ง์ ๊ฒฝ๋ก(url/oss ๋ชจ๋) | ||
maskImage | string | ์๋์ | AI ํธ์ง๊ธฐ๋ ์ด ํ๋๋ฅผ ์ ๋ฌํด์ผ ํฉ๋๋ค. | ||
modelId | string | ์๋์ | controlModel์ด null์ด๋ฉด ์ด ํ๋๋ฅผ ์ฑ์์ผ ํฉ๋๋ค. | ||
prompt | string | ์ | ํ๋กฌํํธ | ||
negativePrompt | string | ์๋์ | ๋ถ์ ์ ์ธ ํ๋กฌํํธ | ||
controlModel | string | ์๋์ | canny / scribble / openpose / mlsd / hed / seg / depth / normal | ||
controlStrength | number | ์๋์ | 1 | [0, 2] | |
controlFilter | string | ์๋์ | control ์ด๋ฏธ์ง์ ์ ์ฒ๋ฆฌ, ์: openpose / openpose_full / openpose_hand / openpose_face / openpose_faceonly | ||
strength | number | ์๋์ | 0.8 | [0.1, 1] | |
width | integer | ์๋์ | 512 | ||
height | integer | ์๋์ | 512 | ||
steps | integer | ์๋์ | 30 | 10 <= value <= 50 | |
guidanceScale | integer | ์๋์ | 7.5 | 0 < value <= 20 | |
count | integer | ์๋์ | 4 | ์์ฑ๋ ์ด๋ฏธ์ง ์ |
์ด๋ฆ | ์ ํ | ํ์ | ๊ธฐ๋ณธ๊ฐ | ์ฐธ๊ณ | ๊ธฐํ |
---|---|---|---|---|---|
code | number | ์ | 0 -> ์ฑ๊ณต;1000 -> ํฌ๋ ๋ง ๋ถ์กฑ | ||
info | string | ์๋์ | ์ค๋ฅ ์ ๋ณด | ||
data | object | ์ | |||
โโid | string | ์ | ์์ ID | ||
โโcredit | integer | ์ | ์ฌ์ฉ์์ ์ด ํฌ๋ ๋ง | ||
โโconsumedCredit | integer | ์ | ์์ ์ ์ฌ์ฉ๋ ํฌ๋ ๋ง |
๊ฒฝ๋ก๏ผ /api/job/get
๋ฐฉ๋ฒ๏ผ GET
์ฟผ๋ฆฌ
์ด๋ฆ | ํ์ | ์์ | ์ฐธ๊ณ |
---|---|---|---|
id | ์ | 642ba091592245d79a645b39 | ์์ ID |
์ด๋ฆ | Type | ํ์ | Default | ์ฐธ๊ณ | Others |
---|---|---|---|---|---|
code | integer | ์ | 0 -> ์ฑ๊ณต | ||
info | string | ์๋์ | ์ค๋ฅ ์ ๋ณด | ||
data | object | ์ | |||
โโid | string | ์ | ์์ ID | ||
โโcreateAt | string | ์ | ์์ ์์ฑ ์๊ฐ | ||
โโstatus | integer | ์ | ์์ ์ํ. 0 -> ์ค๋น ์ ๋จ; 1 -> ์ฒ๋ฆฌ ์ค; 2 -> ์ฑ๊ณต; 3 -> ์คํจ | ||
โโresult | object | ์๋์ | |||
โโโโinfo | string | ์๋์ | |||
โโโโdata | object | ์๋์ | |||
โโโโโโimages | string [] | ์๋์ | ์ด๋ฏธ์ง์ ๊ฒฐ๊ณผ ์๋ ๊ฒฝ๋ก (๋๋ฉ์ธ ํ๋์ ์ฐ๊ฒฐํด์ผ ํจ) | item Type:string | |
โโโโโโartIds | string [] | ์๋์ | ๊ทธ๋ฆผ ํด๋น artID | item Type:string | |
โโโโโโdomain | string | ์๋์ | oss url, ๊ทธ๋ฆผ์ ์๋ ๊ฒฝ๋ก๋ฅผ ์ฐ๊ฒฐํด์ผ ํฉ๋๋ค. | ||
โโargs | object | ์๋์ | |||
โโโโprompt | string | ์๋์ | |||
โโโโnegativePrompt | string | ์๋์ | |||
โโโโmodel | string | ์๋์ | |||
โโโโstrength | integer | ์๋์ | |||
โโโโwidth | integer | ์๋์ | |||
โโโโheight | integer | ์๋์ |
๊ฒฝ๋ก๏ผ /api/job/models
๋ฐฉ๋ฒ๏ผ GET
์ด๋ฆ | ์ ํ | ํ์ | ๊ธฐ๋ณธ๊ฐ | ์ฐธ๊ณ | ๊ธฐํ |
---|---|---|---|---|---|
code | integer | ์ | 0 -> ์ฑ๊ณต | ||
info | string | ์๋์ | ์ค๋ฅ ์ ๋ณด | ||
data | object | ์ | |||
โdomain | string | ์ | ์ด๋ฏธ์ง oss ๋๋ฉ์ธ ์ด๋ฆ, ์๋ ์์ด์ฝ ํ๋๋ฅผ ์ฐ๊ฒฐํด์ผ ํฉ๋๋ค. | ||
โmodels | object [] | ์ | item Type:object | ||
id | string | ์ | ๋ชจ๋ธ ID, ์์ ์ ์์ฑํ ๋ controlModel ๋งค๊ฐ๋ณ์ ๊ฐ์ ์ด ID์ ๋๋ค. | ||
name | string | ์ | ์๋ฌธ ์ด๋ฆ | ||
cname | string | ์ | ์ค๊ตญ์ด ์ด๋ฆ | ||
icon | string | ์ | ์ํ ๊ทธ๋ฆผ. oss ์๋ ๊ฒฝ๋ก, ๋๋ฉ์ธ์ ์ฐ๊ฒฐํด์ผ ํฉ๋๋ค. |
๊ฒฝ๋ก๏ผ /api/job/list
๋ฐฉ๋ฒ๏ผ GET
ํค๋
์ด๋ฆ | ๊ฐ | ํ์ | ์์ | ์ฐธ๊ณ |
---|---|---|---|---|
Content-Type | application/json | ์ | ||
Authorization | Bearer {YOUR KEY} | ์ | Bearer 37f333a2d5f811edb248acde48001122 |
Query
์ด๋ฆ | ํ์ | ์์ | ์ฐธ๊ณ |
---|---|---|---|
pageIndex | ์ | 1๋ถํฐ ์์ | |
pageSize | ์ |
์ด๋ฆ | ์ ํ | ํ์ | ๊ธฐ๋ณธ๊ฐ | ์ฐธ๊ณ | ๊ธฐํ |
---|---|---|---|---|---|
code | integer | ์ | 0 -> ์ฑ๊ณต | ||
info | string | ์๋์ | ์ค๋ฅ ์ ๋ณด | ||
data | object | ์ | |||
โโjobs | object [] | ์ | ์์ ๋ฐฐ์ด | item Type:object | |
โโโโid | string | ์ | ์์ ID | ||
โโโโcreatedAt | string | ์ | |||
โโโโargs | object | ์ | |||
โโโโโโprompt | string | ์ | |||
โโโโโโnegativePrompt | string | ์ | |||
โโโโโโstrength | integer | ์ | |||
โโโโโโwidth | integer | ์ | |||
โโโโโโheight | integer | ์ | |||
โโโโโโcount | integer | ์ | |||
โโโโโโsteps | integer | ์ | |||
โโโโarts | object [] | ์ | ์์ฑ๋ ์ด๋ฏธ์ง ๋ฐฐ์ด | item Type:object | |
โโโโโโid | string | ์ | ์์ฑ๋ ์ด๋ฏธ์ง์ ID | ||
โโโโโโimages | object [] | ์ | ๋ค์ํ ๊ทธ๋ฆผ ๋ฐฐ์ด | item Type:object | |
โโโโโโโโspec | string | ์ | ๋ณํ ์ ํ. o -> ์๋ณธ; 2x/3x/4x -> 2/3/4 ๋ฐฐ์จ ์ด๋ฏธ์ง | ||
โโโโโโโโpath | string | ์ | ์ด๋ฏธ์ง ๊ฒฝ๋ก. ์ฐ๊ฒฐํ ๋๋ฉ์ธ | ||
โโโโโโโโsize | integer | ์ | ์ด๋ฏธ์ง ํฌ๊ธฐ. ๋จ์: ๋ฐ์ดํธ | ||
โโdomain | string | ์ | oss ์ด๋ฏธ์ง ๋๋ฉ์ธ |
๊ฒฝ๋ก๏ผ /api/model/list
๋ฐฉ๋ฒ๏ผ GET
ํค๋
์ด๋ฆ | ๊ฐ | ํ์ | ์์ | ์ฐธ๊ณ |
---|---|---|---|---|
Authorization | Bearer {YOUR KEY} | ์ | Bearer 37f333a2d5f811edb248acde48001122 |
์ฟผ๋ฆฌ
์ด๋ฆ | ํ์ | ์์ | ์ฐธ๊ณ |
---|---|---|---|
pageIndex | ์ | 1๋ถํฐ ์์ | |
pageSize | ์ | ||
type | ์๋์ | platform/community |
์ด๋ฆ | ์ ํ | ํ์ | ๊ธฐ๋ณธ๊ฐ | ์ฐธ๊ณ | ๊ธฐํ |
---|---|---|---|---|---|
code | integer | ์ | 0 -> ์ฑ๊ณต | ||
info | string | ์๋์ | ์ค๋ฅ ์ ๋ณด | ||
data | object | ์ | |||
โโdomain | string | ์ | oss ๋๋ฉ์ธ | ||
โโtotal | integer | ์ | ํ์ด์ง์ ์ํด ํํฐ๋ง๋ ์ด ๋ชจ๋ธ ์ | ||
โโmodels | object [] | ์ | item Type:object | ||
โโโโid | string | ์ | ๋ชจ๋ธ ID | ||
โโโโname | string | ์ | ๋ชจ๋ธ ์ด๋ฆ | ||
โโโโusername | string | ์ | modelโs author name | ||
โโโโdesc | string | ์ | ๋ชจ๋ธ ์ค๋ช | ||
โโโโcover | string | ์ | ๋ชจ๋ธ ํ์ง | ||
โโโโisFavourite | boolean | ์ | ์ฌ์ฉ์๊ฐ ๋ชจ๋ธ์ ์ฆ๊ฒจ์ฐพ๊ธฐํ๋์ง ์ฌ๋ถ | ||
โโโโcontrolNet | boolean | ์ | ๋ชจ๋ธ์ด ControlNet์ ์ง์ํ๋์ง ์ฌ๋ถ |
๊ฒฝ๋ก๏ผ /api/job/upscale
๋ฐฉ๋ฒ๏ผ POST
ํค๋
์ด๋ฆ | ๊ฐ | ํ์ | ์์ | ์ฐธ๊ณ |
---|---|---|---|---|
Content-Type | application/json | ์ | ||
Authorization | Bearer {YOUR KEY} | ์ | Bearer 37f333a2d5f811edb248acde48001122 |
๋ณธ๋ฌธ
์ด๋ฆ | ์ ํ | ํ์ | ๊ธฐ๋ณธ๊ฐ | ์ฐธ๊ณ | ๊ธฐํ |
---|---|---|---|---|---|
model | string | ์๋์ | ์ ์ค์ผ์ผ ๋ชจ๋ธ ์ด๋ฆ | ||
RealESRGAN _x4plus / RealESRGAN_x4plus_anime_6B | |||||
imagePath | string | ์ | ์ด๋ฏธ์ง ๊ฒฝ๋ก. ์ฐ๊ฒฐํ ๋๋ฉ์ธ | ||
upscaleFactor | integer | ์ | 2 <= factor <= 4 | ||
beauty | boolean | ์๋์ | ์ผ๊ตด ํฅ์ ํ์ฑํ ์ฌ๋ถ | ||
artId | string | ์ | ์ํผ ํฌ์ธํธ ๊ทธ๋ฆผ artID ํ์ |
์ด๋ฆ | ์ ํ | ํ์ | ๊ธฐ๋ณธ๊ฐ | ์ฐธ๊ณ | ๊ธฐํ |
---|---|---|---|---|---|
code | number | ์ | 0 -> ์ฑ๊ณต;1000 -> ํฌ๋ ๋ง ๋ถ์กฑ | ||
info | string | ์๋์ | ์ค๋ฅ ์ ๋ณด | ||
data | object | ์ | |||
โโid | string | ์๋์ | ์ ์ค์ผ์ผ ์์ ID | ||
โโcredit | integer | ์ | ์ฌ์ฉ์์ ์ด ํฌ๋ ๋ง | ||
โโconsumedCredit | integer | ์ | ์์ ์ ์ฌ์ฉ๋ ํฌ๋ ๋ง |
๊ฒฝ๋ก๏ผ /api/art/segment
๋ฐฉ๋ฒ๏ผ POST
ํค๋
์ด๋ฆ | ๊ฐ | ํ์ | ์์ | ์ฐธ๊ณ |
---|---|---|---|---|
Content-Type | application/json | ์ | ||
Authorization | Bearer {YOUR KEY} | ์ | Bearer 37f333a2d5f811edb248acde48001122 |
๋ณธ๋ฌธ
์ด๋ฆ | ์ ํ | ํ์ | ๊ธฐ๋ณธ๊ฐ | ์ฐธ๊ณ | ๊ธฐํ |
---|---|---|---|---|---|
image | string | ์ | ์ด๋ฏธ์ง ๊ฒฝ๋ก. ์ ๋/์๋ ๊ฒฝ๋ก |
์ด๋ฆ | ์ ํ | ํ์ | ๊ธฐ๋ณธ๊ฐ | ์ฐธ๊ณ | ๊ธฐํ |
---|---|---|---|---|---|
code | number | ์ | 0 -> ์ฑ๊ณต | ||
info | string | ์๋์ | ์ค๋ฅ ์ ๋ณด | ||
data | object | ์ | |||
โโimage | string | ์ | ๋ถํ ํ ์ด๋ฏธ์ง์ URL |
๊ฒฝ๋ก๏ผ /api/user/profile
๋ฐฉ๋ฒ๏ผ GET
ํค๋
์ด๋ฆ | ๊ฐ | ํ์ | ์์ | ์ฐธ๊ณ |
---|---|---|---|---|
Content-Type | application/json | ์ | ||
Authorization | Bearer {YOUR KEY} | ์ | Bearer 37f333a2d5f811edb248acde48001122 |
์ด๋ฆ | ์ ํ | ํ์ | ๊ธฐ๋ณธ๊ฐ | ์ฐธ๊ณ | ๊ธฐํ |
---|---|---|---|---|---|
code | number | ์ | 0 -> ์ฑ๊ณต | ||
info | string | ์๋์ | ์ค๋ฅ ์ ๋ณด | ||
data | object | ์ | |||
โโname | string | ์ | |||
โโemail | string | ์ | |||
โโavatar | string | ์ | |||
โโphone | string | ์ | |||
โโcredit | integer | ์ | ์ฌ์ฉ์์ ์ด ํฌ๋ ๋ง | ||
โโdisplayNSFW | boolean | ์ | |||
โโdiscord | boolean | ์ |
๊ฒฝ๋ก๏ผ api/transform/list
๋ฐฉ๋ฒ๏ผ GET
์ด๋ฆ | ์ ํ | ํ์ | ๊ธฐ๋ณธ๊ฐ | ์ฐธ๊ณ | ๊ธฐํ |
---|---|---|---|---|---|
code | number | ์ | 0 -> ์ฑ๊ณต | ||
info | string | ์๋์ | ์ค๋ฅ ์ ๋ณด | ||
data | object | ์ | |||
โโdomain | string | ์ | ์ด๋ฏธ์ง oss ๋๋ฉ์ธ ์ด๋ฆ, ์๋ ์์ด์ฝ ํ๋๋ฅผ ์ฐ๊ฒฐํด์ผ ํฉ๋๋ค. | ||
โโtags | string[] | ์ | ํ ํ๋ฆฟ ํ๊ทธ | ||
โโtransform | object | ์ | |||
โโโโtag | object[] | ์ | |||
โโโโโโid | string | ์ | |||
โโโโโโname | string | ์ | |||
โโโโโโimage | string | ์ | ์๋ณธ ์ด๋ฏธ์ง | ||
โโโโโโart | string | ์ | ๊ฒฐ๊ณผ ์ด๋ฏธ์ง | ||
โโโโโโcost | number | ์ | ํฌ๋ ๋ง ์๋น | ||
โโโโโโpro | boolean | ์ | is pro | ||
โโโโโโtag | string | ์ | ํ๊ทธ |
๊ฒฝ๋ก๏ผ api/transform/create-headshot
๋ฐฉ๋ฒ๏ผ POST
ํค๋
์ด๋ฆ | ๊ฐ | ํ์ | ์์ | ์ฐธ๊ณ |
---|---|---|---|---|
Content-Type | application/json | ์ | ||
Authorization | Bearer {YOUR KEY} | ์ | Bearer 37f333a2d5f811edb248acde48001122 |
๋ณธ๋ฌธ
์ด๋ฆ | ์ ํ | ํ์ | ๊ธฐ๋ณธ๊ฐ | ์ฐธ๊ณ | ๊ธฐํ |
---|---|---|---|---|---|
imagePath | string | ์ | ํธ์ถ ์ ๋ฐํ๋ ์ด๋ฏธ์ง ๊ฒฝ๋ก upload-image api | ||
transformId | string | ์ | |||
width | integer | ์๋์ | |||
height | integer | ์๋์ | |||
keepHair | boolean | ์๋์ | false | ||
keepPose | boolean | ์๋์ | true |
์ด๋ฆ | ์ ํ | ํ์ | ๊ธฐ๋ณธ๊ฐ | ์ฐธ๊ณ | ๊ธฐํ |
---|---|---|---|---|---|
code | number | ์ | 0 -> ์ฑ๊ณต;1000 -> ํฌ๋ ๋ง ๋ถ์กฑ | ||
info | string | ์๋์ | ์ค๋ฅ ์ ๋ณด | ||
data | object | ์ | |||
โโid | string | ์ | ์์ ID | ||
โโcredit | integer | ์ | ์ฌ์ฉ์์ ์ด ํฌ๋ ๋ง | ||
โโconsumedCredit | integer | ์ | ์์ ์ ์ฌ์ฉ๋ ํฌ๋ ๋ง |