Skip to content

Elevenlabs convert text to speech. Error: Authorization failed - please check your credentials Request failed with status code 401 #17252

Description

@nosovsh

Describe the problem/error/question

  1. Add a node "Elevenlabs"
  2. fill fields:
  • Credential to connect with: connect a valid API key
  • Resource: Speech
  • Operation: Text to Speech
  • Voice: From list Rachel
  • Text: Hello world
  1. Click "Execute step"

You will see the auth error. No result is returned.

Important. API key is valid, I checked "Voice" resource using the same connection and it works, seems problem in the Speech generation action. My API key has no restrictions

Image Image

What is the error message (if any)?

Authorization failed - please check your credentials
Request failed with status code 401

Error details:
{ "errorMessage": "Authorization failed - please check your credentials", "errorDescription": "Request failed with status code 401", "errorDetails": { "rawErrorMessage": [ "Request failed with status code 401" ], "httpCode": "401", "errorData": { "type": "Buffer", "data": [ 123, 34, 100, 101, 116, 97, 105, 108, 34, 58, 123, 34, 115, 116, 97, 116, 117, 115, 34, 58, 34, 100, 101, 116, 101, 99, 116, 101, 100, 95, 117, 110, 117, 115, 117, 97, 108, 95, 97, 99, 116, 105, 118, 105, 116, 121, 34, 44, 34, 109, 101, 115, 115, 97, 103, 101, 34, 58, 34, 85, 110, 117, 115, 117, 97, 108, 32, 97, 99, 116, 105, 118, 105, 116, 121, 32, 100, 101, 116, 101, 99, 116, 101, 100, 46, 32, 70, 114, 101, 101, 32, 84, 105, 101, 114, 32, 117, 115, 97, 103, 101, 32, 100, 105, 115, 97, 98, 108, 101, 100, 46, 32, 73, 102, 32, 121, 111, 117, 32, 97, 114, 101, 32, 117, 115, 105, 110, 103, 32, 97, 32, 112, 114, 111, 120, 121, 47, 86, 80, 78, 32, 121, 111, 117, 32, 109, 105, 103, 104, 116, 32, 110, 101, 101, 100, 32, 116, 111, 32, 112, 117, 114, 99, 104, 97, 115, 101, 32, 97, 32, 80, 97, 105, 100, 32, 80, 108, 97, 110, 32, 116, 111, 32, 110, 111, 116, 32, 116, 114, 105, 103, 103, 101, 114, 32, 111, 117, 114, 32, 97, 98, 117, 115, 101, 32, 100, 101, 116, 101, 99, 116, 111, 114, 115, 46, 32, 70, 114, 101, 101, 32, 84, 105, 101, 114, 32, 111, 110, 108, 121, 32, 119, 111, 114, 107, 115, 32, 105, 102, 32, 117, 115, 101, 114, 115, 32, 100, 111, 32, 110, 111, 116, 32, 97, 98, 117, 115, 101, 32, 105, 116, 44, 32, 102, 111, 114, 32, 101, 120, 97, 109, 112, 108, 101, 32, 98, 121, 32, 99, 114, 101, 97, 116, 105, 110, 103, 32, 109, 117, 108, 116, 105, 112, 108, 101, 32, 102, 114, 101, 101, 32, 97, 99, 99, 111, 117, 110, 116, 115, 46, 32, 73, 102, 32, 119, 101, 32, 110, 111, 116, 105, 99, 101, 32, 116, 104, 97, 116, 32, 109, 97, 110, 121, 32, 112, 101, 111, 112, 108, 101, 32, 116, 114, 121, 32, 116, 111, 32, 97, 98, 117, 115, 101, 32, 105, 116, 44, 32, 119, 101, 32, 119, 105, 108, 108, 32, 110, 101, 101, 100, 32, 116, 111, 32, 114, 101, 99, 111, 110, 115, 105, 100, 101, 114, 32, 70, 114, 101, 101, 32, 84, 105, 101, 114, 32, 97, 108, 116, 111, 103, 101, 116, 104, 101, 114, 46, 32, 92, 110, 80, 108, 101, 97, 115, 101, 32, 112, 108, 97, 121, 32, 102, 97, 105, 114, 32, 97, 110, 100, 32, 112, 117, 114, 99, 104, 97, 115, 101, 32, 97, 110, 121, 32, 80, 97, 105, 100, 32, 83, 117, 98, 115, 99, 114, 105, 112, 116, 105, 111, 110, 32, 116, 111, 32, 99, 111, 110, 116, 105, 110, 117, 101, 46, 34, 125, 125 ] } }, "n8nDetails": { "nodeName": "Convert text to speech", "nodeType": "@elevenlabs/n8n-nodes-elevenlabs.elevenLabs", "nodeVersion": 1, "resource": "speech", "operation": "textToSpeech", "itemIndex": 0, "runIndex": 0, "time": "12/07/2025, 12:50:07", "n8nVersion": "1.100.1 (Cloud)", "binaryDataMode": "filesystem", "stackTrace": [ "NodeApiError: Authorization failed - please check your credentials", " at ExecuteSingleContext.httpRequestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_openai@4.103.0_encoding@0.1.13_ws@8.17.1_zod@3.25.67_/node_modules/n8n-core/src/execution-engine/node-execution-context/utils/request-helper-functions.ts:1365:11)", " at processTicksAndRejections (node:internal/process/task_queues:105:5)", " at ExecuteSingleContext.httpRequestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_openai@4.103.0_encoding@0.1.13_ws@8.17.1_zod@3.25.67_/node_modules/n8n-core/src/execution-engine/node-execution-context/utils/request-helper-functions.ts:1741:11)", " at RoutingNode.rawRoutingRequest (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_openai@4.103.0_encoding@0.1.13_ws@8.17.1_zod@3.25.67_/node_modules/n8n-core/src/execution-engine/routing-node.ts:568:20)", " at RoutingNode.makeRequest (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_openai@4.103.0_encoding@0.1.13_ws@8.17.1_zod@3.25.67_/node_modules/n8n-core/src/execution-engine/routing-node.ts:762:19)", " at async Promise.allSettled (index 0)", " at RoutingNode.runNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_openai@4.103.0_encoding@0.1.13_ws@8.17.1_zod@3.25.67_/node_modules/n8n-core/src/execution-engine/routing-node.ts:273:29)", " at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_openai@4.103.0_encoding@0.1.13_ws@8.17.1_zod@3.25.67_/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1288:17)", " at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_openai@4.103.0_encoding@0.1.13_ws@8.17.1_zod@3.25.67_/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1542:27", " at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_openai@4.103.0_encoding@0.1.13_ws@8.17.1_zod@3.25.67_/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2108:11" ] } }

Please share your workflow/screenshots/recording

Image Image
(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.)
⚠️ WARNING ⚠️ If you have sensitive data in your workflow (like API keys), please remove it before sharing.
{
  "nodes": [
    {
      "parameters": {
        "resource": "speech",
        "voice": {
          "__rl": true,
          "value": "21m00Tcm4TlvDq8ikWAM",
          "mode": "list",
          "cachedResultName": "Rachel"
        },
        "text": "how are you",
        "additionalOptions": {},
        "requestOptions": {}
      },
      "type": "@elevenlabs/n8n-nodes-elevenlabs.elevenLabs",
      "typeVersion": 1,
      "position": [
        1840,
        280
      ],
      "id": "47ffc620-3049-4775-bf33-f3c6a413e220",
      "name": "Convert text to speech",
      "credentials": {
        "elevenLabsApi": {
          "id": "c8DDBd9Hm5pF9IQH",
          "name": "ElevenLabs account"
        }
      }
    }
  ],
  "connections": {
    "Convert text to speech": {
      "main": [
        []
      ]
    }
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "6ddb66561da18d1e690e477f6e5679d1d5e071f16587d6ac0a17403a0622e446"
  }
}

Share the output returned by the last node

No output from the last node is used

Debug info

core

  • n8nVersion: 1.100.1
  • platform: docker (cloud)
  • nodeJsVersion: 22.16.0
  • database: sqlite
  • executionMode: regular
  • concurrency: 5
  • license: community

storage

  • success: all
  • error: all
  • progress: false
  • manual: true
  • binaryMode: filesystem

pruning

  • enabled: true
  • maxAge: 168 hours
  • maxCount: 2500 executions

client

  • userAgent: mozilla/5.0 (macintosh; intel mac os x 10_15_7) applewebkit/537.36 (khtml, like gecko) chrome/137.0.0.0 safari/537.36
  • isTouchDevice: false

Generated at: 2025-07-12T09:17:14.921Z}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions