Fal.ai/flux Not Working

Describe the problem/error/question

I’m trying to build a simple workflow able to create an image using a Json prompt through fal.ai/flux, but keep getting this error message.

I got a positive output from the POST HTTP Request, responsible for requesting the image generation, using the URL “https://queue.fal.run/fal-ai/flux/” and using my API key as Header Auth Account, as shown on the images below

What is the error message (if any)?

“Your request is invalid or could not be processed by the service

Field required”

The GET HTTP Request, which would be responsible for downloading the generated image, doesn’t work.

Please share your workflow


Share the output returned by the last node

Information on your n8n setup

  • n8n version:

    1.109.2

  • Database (default: SQLite):

  • n8n EXECUTIONS_PROCESS setting (default: own, main):

  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker

  • Operating system: Windows 10

URL should be https://queue.fal.run/fal-ai/flux/dev

You can refer to the screenshot. When making a request, you must send the body, which must contain a prompt field

refer to FLUX.1 [dev]: Text-to-Image AI Generator | fal.ai

Done that, but still the result was the same. The request is accepted, the image is generated (apparently) but can’t retrieve the generated image file using the “response_url”. Is there something wrong with my “Download Image” (HTTP Request GE) node?

2 Likes
NO . You need to request status_url to check if production is successful? If the status is success, you need to obtain the response_url, get your result, and then download it. I will give you an example above the one.

It worked :grinning_face: !! So I have to get the status first, then get the result using the request URL/{{$json.request_id}}. Nice! Thank you so much for your help!

1 Like

Oh, just one more question, if you don’t mind: inserting workflows directly here, as you did, is clearly an easier way to share information, instead of screenshots. My only concern is about API keys and other sensitive parameters - are they automatically supressed, or do I have to delete them before paste the workflows here?

You will not create header Parameters directly, however , you can create Authentication: Generic Credential type like my picture .

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.