import requests from pprint import pprint response = requests.post( "https://api.sapling.ai/api/v1/aidetect", json={ "key": "60L9BPSVPIIOEZM0CD1DQWRBPJIUR7SB", "text": "This is sample text." } ) pprint(response.json()['score'])