cURL
curl --request POST \ --url https://api.novita.ai/v2/upscale \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data '{ "image": "<string>", "upscaler_1": {}, "resize_mode": {}, "upscaling_resize": {}, "upscaling_resize_w": {}, "upscaling_resize_h": {}, "upscaling_crop": {}, "upscaler_2": {}, "extras_upscaler_2_visibility": {}, "gfpgan_visibility": {}, "codeformer_visibility": {}, "codeformer_weight": {}, "img_expire_ttl": 123 }'
{ "code": 123, "msg": "<string>", "data": { "task_id": "<string>", "warn": "<string>" } }
Show properties
curl --location 'https://api.novita.ai/v2/upscale' \ --header 'Authorization: Bearer {{API Key}}' \ --header 'Content-Type: application/json' \ --data '{ 'image': '{{base64 encoded image}}', 'upscaler_1': 'R-ESRGAN 4x+', 'resize_mode': 1, 'upscaling_resize': null, 'upscaling_resize_w': 1024, 'upscaling_resize_h': 1024, 'upscaling_crop': true, 'upscaler_2': 'R-ESRGAN 4x+', 'extras_upscaler_2_visibility': 0.5, 'gfpgan_visibility': 0.5, 'codeformer_visibility': 0.5, 'codeformer_weight': 0.5, 'img_expire_ttl': null }'
{ "code": null, "msg": "", "data": { "task_id": "", "warn": "" } }
Was this page helpful?