Enlarge API
curl -d '{"style": "art", "noise": "3", "x2": "1", "input": "YOUR_IMAGE_URL"}' \ -H 'X-API-KEY:' \ https://bigjpg.com/api/task/import requests import json data = { 'style': 'art', 'noise': '3', 'x2': '1', 'file_name': 'small.jpg', 'input': 'YOUR_IMAGE_URL' } r = requests.post( url='https://bigjpg.com/api/task/', headers={'X-API-KEY': ''}, data=json.dumps(data) ) print(r.json())- JSON format - style can be 'art', 'photo' which means 'cartoon illustration', 'photo' - noise can be '-1', '0', '1', '2', '3' which means 'None', 'Low, 'Medium', 'High', 'Highest' - x2 can be '1', '2', '3', '4' which means 2x, 4x, 8x, 16x - input your enlarge image url
Result Query API
curl https://bigjpg.com/api/task/tid1,tid2,tid3,tid100import requests r = requests.get(url='https://bigjpg.com/api/task/tid1,tid2,tid3,tid100') print(r.json())- yellow part is the task id returned by the API above
Task retry API
curl -X POST https://bigjpg.com/api/task/tid1,tid2,tid3,tid100import requests r = requests.post(url='https://bigjpg.com/api/task/tid1,tid2,tid3,tid100') print(r.json())- yellow part is the task id returned by the API above
Sau khi nâng cấp: