Authorization failed with fal.ai

Hi i am on a free trial right now i am trying to use HTTP node to post to fal.ais Flux pro 1.1 model but an error keeps on popping regarding authorization failed.

i have added the fal api key in header authentication, tried different things but its not working.

image

keeps saying autehtication failed

this is the fal model i am trying to use

If anyone can help please, if there is anymore info you need please let me know.

Hey @shaheer_riaz hope all is good. Welcome to the community.

Have you tried running your request with curl from cli? (just to get a baseline of whether it is working at all for you)

I am pretty new to automations and i know very basic coding.

how can i execute the step you are reffering to? I was unable to find curl for the specific model i am trying to post to?

I have no idea whats cli..!

I have added the header with authorization and the key <>


i am not even sure if i have imported the right thing or not

this should be the curl right

If you want to import the curl command in n8n, use only this part:

curl --request POST \
  --url https://queue.fal.run/fal-ai/flux-pro/v1.1-ultra \
  --header "Authorization: Key $FAL_KEY" \
  --header "Content-Type: application/json" \
  --data '{
     "prompt": "Extreme close-up of a single tiger eye, direct frontal view. Detailed iris and pupil. Sharp focus on eye texture and color. Natural lighting to capture authentic eye shine and depth. The word \"FLUX\" is painted over it in big, white brush strokes with visible texture."
   }'

and don’t forget to substitute the FAL_KEY with yours.

Thank you so much i would love to connect with you on Linkedin as well

req sent