How to send image to API?

Database & APIs

I recently integrated the OpenAI API with vision into my flutter flow project. The API has parameters of an image link rather than an image file; however, I want to be able to pass an image file to the API rather than a string containing the image path.

I have a button in my UI that basically allows a user to upload a picture, as an image file. I was wondering how I can pass the image as a url/path for my API call?

What have you tried so far?
  • I've tried to directly send the image to the API, did not work.

Did you check FlutterFlow's Documentation for this topic?
No
2
3 replies