N8n Template issue

Describe the problem/error/question

I am trying to customize a n8n template for youtube “Create & Upload AI-Generated ASMR YouTube Shorts with Seedance, Fal AI, and GPT-4”. At the agent called “Sequence Video”, I am getting issues with credentiling. I am using the fal url is “https://queue.fal.run/fal-ai/ffmpeg-api/compose“

I went to the fal.ai and create an API Key and using it in the credential. But still getting “Authorization failed - please check your credentials“

What is the error message (if any)?

“Authorization failed - please check your credentials”

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

{
  "nodes": [
    {
      "parameters": {
        "method": "POST",
        "url": "https://queue.fal.run/fal-ai/ffmpeg-api/compose",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "contentType": "raw",
        "rawContentType": "application/json",
        "body": "={\n  \"tracks\": [\n    {\n      \"id\": \"1\",\n      \"type\": \"video\",\n      \"keyframes\": [\n        { \"url\": \"{{ $json.video_urls[0] }}\", \"timestamp\": 0, \"duration\": 10 },\n        { \"url\": \"{{ $json.video_urls[1] }}\", \"timestamp\": 10, \"duration\": 10 },\n        { \"url\": \"{{ $json.video_urls[2] }}\", \"timestamp\": 20, \"duration\": 10 }\n      ]\n    }\n  ]\n}",
        "options": {
          "batching": {
            "batch": {
              "batchSize": 1,
              "batchInterval": 2000
            }
          }
        }
      },
      "id": "8892adcd-e2da-476c-998d-b814b12184e0",
      "name": "Sequence Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3632,
        880
      ],
      "typeVersion": 4.2,
      "credentials": {
        "httpHeaderAuth": {
          "id": "E44lRtBWxIVt0XCN",
          "name": "DeveloperFalAPI"
        }
      }
    }
  ],
  "connections": {
    "Sequence Video": {
      "main": [
        []
      ]
    }
  },
  "pinData": {},
  "meta": {
    "templateId": "5110",
    "templateCredsSetupCompleted": true,
    "instanceId": "7e7f607035ddd57f5d6b0e61799ba90009bd7f7936b121aa13fba8b3e6f10101"
  }
}

Share the output returned by the last node

Information on your n8n setup

  • n8n version: Latest.
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Mac

I haven’t read the documentation of fal.ai specifically but have you tried sending the authorization key as a header instead? (check the HTTP Request node I provided)