Barrett Nash
 · https://infiniteup.dev/infiniteup-your-premier-partner-in-app-development/

Help Needed: Resolving ‘414 Request-URI Too Large’ Error When Sending Image to OpenAI API

Integrations

Hi all,

I’m currently working on a project where I need to send an image from my FlutterFlow app to the OpenAI API for processing. However, I’m running into a “414 Request-URI Too Large” error, even though the image I’m trying to send is only around 300KB. I’ve tried various solutions, including reducing the image size further and ensuring the image is sent in a multipart/form-data format, but the issue persists.

What have you tried so far?

Multipart/Form-Data: Switched to using multipart/form-data to send the image.

POST Request Method: Made sure the HTTP method is set to POST, not GET.

Smaller Images: Attempted with even smaller image sizes to see if that would make a difference.

Did you check FlutterFlow's Documentation for this topic?
Yes
2
4 replies