import requests
URL = "https://api.runpod.ai/v2/<POD_ID>/runsync"
HEADERS = {"Authorization" : "Bearer <TOKEN>"}
body = {
"input": {
"api": {
"method": "POST",
"endpoint": "/ping",
},
"payload": {}, # Empty for example, but holds parameters in real case
},
}
response = requests.post(URL, json=body, headers=HEADERS)
import requests
URL = "https://api.runpod.ai/v2/<POD_ID>/runsync"
HEADERS = {"Authorization" : "Bearer <TOKEN>"}
body = {
"input": {
"api": {
"method": "POST",
"endpoint": "/ping",
},
"payload": {}, # Empty for example, but holds parameters in real case
},
}
response = requests.post(URL, json=body, headers=HEADERS)