Hello guys,
I am trying to connect to fal.ai API trough header auth but it doesnt work and says: Authorization failed - please check your credentials
Cannot access application ‘fal-ai/flux-pro’. Authentication is required to access this application.
Error code
401
Full message
401 - "{\"detail\": \"Cannot access application 'fal-ai/flux-pro'. Authentication is required to access this application.\"}"
Request
{ "body": { "prompt": "Two men are walking up a grassy slope on a sunny day, surrounded by green trees and bushes; one is carrying a wooden pallet with gloves, while the other holds a box, with a narrow road visible in the background.", "image_size": { "width": 1024, "height": 768 }, "num_inference_steps": 30, "guidance_scale": 3.5, "num_images": 1, "enable_safety_checker": true }, "headers": { "Key": "**hidden**", "accept": "application/json,text/html,application/xhtml+xml,application/xml,text/*;q=0.9, image/*;q=0.8, */*;q=0.7" }, "method": "POST", "uri": "https://queue.fal.run/fal-ai/flux-pro/v1.1-ultra", "gzip": true, "rejectUnauthorized": true, "followRedirect": true, "resolveWithFullResponse": true, "followAllRedirects": true, "timeout": 300000, "encoding": null, "json": false, "useStream": true }
Item Index
0
Node type
n8n-nodes-base.httpRequest
Node version
4.2 (Latest)
n8n version
1.78.1 (Cloud)
Time
19. 2. 2025 10:49:05
Stack trace
NodeApiError: Authorization failed - please check your credentials at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js:525:33) at processTicksAndRejections (node:internal/process/task_queues:95:5) at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:633:19) at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:882:51 at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:1216:20
I am sure I used correct API key