Invalid API request for Runware Image Generation

Database & APIs

Hey FlutterFlow community!

I'm running into an issue where my API works perfectly in VS Code but fails in FlutterFlow.

I've included an API key with a $2 balance so you can test and hopefully help me figure it out 😊

API KEY: Bearer nWePMaWN3QsrlAR6G4NvqRcCHD38lQbs

Essentially, I am trying to use runware for my image generation app (I like the speed and price) but can't figure out why the API call is not working inside FlutterFlow

What Works in VS Code

  • I’m able to send a request using Postman/VS Code, and the API responds correctly.

  • The request includes:

    • Authorization: Bearer token

    • Content-Type: application/json

    • Session Cookies (PFSESS, PHPSESSID)

    • Cache-Control: no-cache

    • Accept-Encoding: gzip, deflate, br

  • What Fails in FlutterFlow

    • I’ve set up the API call in FlutterFlow, but the request doesn’t seem to go through correctly.

    • I’m not sure if FlutterFlow is handling cookies, headers, or encoding differently.

    • No clear error message, but the response is either empty or rejected.

What have you tried so far?
  • Generated new API KEY

  • Added all default postman headers into my FlutterFlow Headers

  • Toggled on and off Proxy URL

  • Ensured Authorization: Bearer <AUTH_TOKEN> is included

  • Set Content-Type: application/json

  • Used different UUIDs

  • Tried with and without custom deployed cloud function API

  • Toggled "Process Streaming Response" to True (results in null)

  • Toggled on and off Cache API Results

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