enhance
Image Enhancement (Upscale) This method allows you to enlarge an image using an AI model. Available scaling factors: x2, x3, x4. Supported input file formats:
PNG
JPG
Parameters:
image— path to the image file.scale— scaling factor (integer from 2 to 4).
Usage Example:
from zerogpt import ImageClient
client = ImageClient()
resp = client.enhance("image.png", scale=2)
resp.download("result.png")Last updated