Enlarge API 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': '67a097e27cc6487f916b66a145a07a11'}, data={'conf': json.dumps(data)} ) print(r.json()) - conf is 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 import requests r = requests.get(url='https://bigjpg.com/api/task/f3d6d584675848ac9a2389352ea1a9f9') print(r.json()) - yellow part is the task id returned by the API above Task retry API import requests r = requests.post(url='https://bigjpg.com/api/task/f3d6d584675848ac9a2389352ea1a9f9') print(r.json()) - yellow part is the task id returned by the API above
Используя этот сайт, вы соглашаетесь с тем, что мы используем файлы cookie.