Upscale V2
The Upscale V2 API is deprecated and will be removed in the future. Please migrate to Upscale V3.
POST Upscale V2
An indispensable tool for improving the quality of images generated by Stable Diffusion.
Request Headers
Request Body
Base64 encoded image
AI upscalers are models trained with massive amounts of data.
Resizing mode:
The magnification factor of the image. For example, if you input upscaling_resize:2 with an image size of 512x512, it will return images of 1024x1024 (the maximum image size is 2048).
The target image width; the maximum image size is 2048.
The target image height; the maximum image size is 2048.
Zoom in after cropping.
AI upscalers are models trained with massive amounts of data.
Range [0~1], Extras upscaler 2 visibility.
Range [0~1], GFPGAN visibility.
Range [0~1], CodeFormer visibility.
Range [0~1], CodeFormer weight (0 = maximum effect, 1 = minimum effect).
Image storage time (seconds). Range [0, 604800].
Response
CodeNormal=0, CodeInternalError=-1, CodeInvalidJSON=1, CodeModelNotExist=2, CodeTaskIdNotExist=3, CodeInvalidAuth=4, CodeHostUnavailable=5, CodeParamRangeOutOfLimit=6, CodeCostBalanceFailure=7, CodeSamplerNotExist=8, CodeTimeout=9, CodeNotSupport=10
Example
request
response
Was this page helpful?