Hugging Face API Call

I have trained a hugging face image recognition model and would like to make an API call using Flutter Flow API.

Hugging Face curl command:

curl https://api-inference.huggingface.co/models/xxxxxx/xxxxxxxxxxxx \

-X POST \

--data-binary '@cats.jpg' \

-H "Authorization: Bearer xxxxxxxxxxxxxxxxxxxx"

I am struggling with pointing to the correct file after using the file upload action. I have created an API header with Content-Type: multipart/form-data and the Bearer token. See screenshot.

Any advise here or example?

1 reply