Skip to main content
POST
/
api
/
images
/
{id}
/
outpaint
Expand(이미지를 다른 해상도로 변환)
curl --request POST \
  --url http://localhost:4010/api/images/{id}/outpaint \
  --header 'Content-Type: application/json' \
  --header 'X-Request-Id: <x-request-id>' \
  --data '{
  "canvasSize": [
    1000,
    1000
  ],
  "originalImageSize": [
    100,
    100
  ],
  "originalImageLocation": [
    100,
    -10
  ]
}'
{
"image": {
"imageId": 123,
"createdAt": "2023-11-07T05:31:56Z",
"resolution": "512x512",
"ownerId": 123,
"etc": "<string>",
"bookmarked": false,
"base64": "<string>",
"mimeType": "image/webp",
"Bought": [],
"Bookmarks": [],
"Upscaled": [
{
"imageId": 123,
"type": "upscale",
"scaleSize": [
"1x",
"2x",
"4x",
"8x"
],
"Image": {
"DownloadLog": [
{
"userId": 123,
"imageId": 123
}
],
"CollectionInfo": {
"enabled": true
}
}
}
],
"GenerationInfo": {
"originalPrompt": "<string>",
"super": "<string>",
"main": "<string>",
"variationId": 123,
"groupId": "<string>",
"blurReason": "<string>"
}
}
}

Headers

X-Request-Id
string
required

Request Id for canceling edit request(취소 요청을 위한 요청 ID)

X-Api-Key
string

API Key(API 키)

Path Parameters

id
number
required

Body

application/json
canvasSize
string[]
required

Canvas Size(캔버스 사이즈)

Example:
[1000, 1000]
originalImageSize
string[]
required

Original Image Size(원본 이미지 사이즈)

Example:
[100, 100]
originalImageLocation
string[]
required

Original Image Top Left Coordinate(원본 이미지 좌측 상단 좌표)

Example:
[100, -10]

Response

Outpainted Image(아웃페인팅된 이미지)

image
object
required

Upscaled Image(업스케일된 이미지)

I