import requests response = requests.post( "http://192.168.100:8000/group_images", json={ "input_dir": "/home/greyshadow/Desktop/source/Grouping/images", "output_dir": "/home/greyshadow/Desktop/source/Grouping/result" } ) print(response.json())