import requests
url = "https://www.datalab.to/api/v1/providers/mathpix"
files = { "file": ("example-file", open("example-file", "rb")) }
payload = { "page_range": "<string>" }
headers = {
"X-Mathpix-App-Id": "<x-mathpix-app-id>",
"X-Mathpix-App-Key": "<x-mathpix-app-key>"
}
response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text)