Make sure you review the Fishial API Recognition tutorial file named: tutor.adoc
https://github.com/fishial/devapi/blob/main/tutor.adoc
Also there is two sample scripts that you can review on how the API is used written in BASH and Python
https://github.com/fishial/devapi/blob/main/recognize_fish.bash
AND
https://github.com/fishial/devapi/blob/main/recognize_fish.py