Перейти к содержимому
EN

Upscale image

POST
/images/upscale
curl --request POST \
--url https://api.mixen.ai/v1/images/upscale \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form image=example \
--form scale=4

Upscales an image 2× or 4× (Real-ESRGAN, face enhance on). Multipart: image file + scale (2 or 4, default 4). Input cap: the side is reduced so the output stays within 4K. Returns base64 (b64_json); the result is also saved to your generations history (GET /v1/generations?type=image). Charged per image.

Media typemultipart/form-data
Body_upscale_image
object
image
required
Image
string
scale
Scale
integer
default: 4

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}