Discussions

Ask a Question
Back to All

I am doing same , what ever you have told iam still facing same issue

import requests

url = "https://api.leiapix.com/api/v1/disparity"

payload = {
"correlationId": "d8f085ae-a562-408a-a2a6-2bee5fed64f0",
"inputImageUrl": "https://res.cloudinary.com/dv31jevup/image/upload/v1713788468/samples/woman-on-a-football-field.jpg",
"dilation": 0.01,
"inputType": "image2d",
"outputBitDepth": "uint8"
}
headers = {
"accept": "application/json",
"content-type": "application/json",
"authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJhMWZUdW1mb1RXbGJENUtEN1ZLbF8xZmluREg0ZTBQTG9NOWMwQTl4WFpjIn0.eyJleHAiOjE3MTQxMzAyMjEsImlhdCI6MTcxNDEyOTMyMSwianRpIjoiZjJlMTEwODItMTQzNC00YmM1LWE2MjAtMzgzOGE2ZWIxNWI2IiwiaXNzIjoiaHR0cHM6Ly9hdXRoLmxlaWFsb2Z0LmNvbS9hdXRoL3JlYWxtcy9sZWlhbG9mdCIsInN1YiI6IjQ4MmMyODdjLTBiYjgtNDcyYi04NzZkLWM5ZjMxMDM0YTg1MCIsInR5cCI6IkJlYXJlciIsImF6cCI6IjIwNTY0YjlkLWFlZGItNDlkYy1iMTM2LTNjOWIxNTI2ZjMwYSIsImFjciI6IjEiLCJzY29wZSI6ImxlaWEtYXBpLWdhdGV3YXkiLCJjbGllbnRJZCI6IjIwNTY0YjlkLWFlZGItNDlkYy1iMTM2LTNjOWIxNTI2ZjMwYSIsImNsaWVudC1vd25lci11c2VyLWlkIjoiMTIxNTYyM2UtYTE2ZS00YjUxLTlkNTMtMDUxZWZiYzU1NWVhIiwiY2xpZW50SG9zdCI6IjQ3LjkuMTM3LjI0MiIsImNsaWVudEFkZHJlc3MiOiI0Ny45LjEzNy4yNDIifQ.LwsOMEoDMzzrKnrsHfeh71mu7J_9U2aBTCUw22e8tR-IQX-XaIzh_TauhtnPVczCL0-QvRttHJSwWweaPP0_WFk2GGoHyUwQ-Wu4rgTV7ud1T4G_c20KXVU384bNkePuLOUim991-crwk20YISpAK7TCJJvhszTVSg5fSQYCdxp_Bd49OTf02mIBiv6mvp0QRQPiODb-kExovyht8TVrWa5TaOyOubRoXaNbb2Ti4LXW5g9zuv2o9GjWUw54q1mchAIWjgS0yM8nNWhWMP30XR-vNnXPcCpR0AoQMWJlgeOhjMfkVpUABLLjsBHoEa0cMH6HsiqJqP2XjiIebkFgEw"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)