Upscale image
POST
/images/upscale
const url = 'https://api.mixen.ai/v1/images/upscale';const form = new FormData();form.append('image', 'example');form.append('scale', '4');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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=4Upscales 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.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typemultipart/form-data
Body_upscale_image
object
image
required
Image
string
scale
Scale
integer
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Examplegenerated
exampleValidation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
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": {} } ]}