ElevenLabs icon

ElevenLabs

Generate natural-sounding speech using ElevenLabs AI

Overview

This node integrates with ElevenLabs' API to provide functionalities related to speech generation, voice management, history access, and user information retrieval. Specifically, for the "User" resource and the "Get User Subscription" operation, it fetches details about the user's subscription plan from ElevenLabs. This is useful for applications that need to verify subscription status or display subscription-related information within workflows.

Practical examples include:

  • Automatically checking a user's subscription level before generating speech to ensure quota limits are respected.
  • Displaying subscription details in dashboards or reports generated by n8n workflows.

Properties

Name Meaning
API Key Notice A notice informing users that an API key from ElevenLabs is required to use this node. It includes a link to obtain the key from the ElevenLabs dashboard.

Note: The actual input properties for the "Get User Subscription" operation are not explicitly listed in the provided code snippet, but typically this operation requires no additional parameters beyond authentication.

Output

The node outputs JSON data containing the user's subscription information as returned by the ElevenLabs API. This typically includes fields such as subscription type, usage limits, expiration dates, and other relevant metadata about the user's account plan.

If the node supports binary data output (not indicated here), it would be summarized accordingly, but for this operation, the output is purely JSON-based subscription details.

Dependencies

  • Requires an API key credential from ElevenLabs to authenticate requests.
  • The node sends HTTP POST requests to the ElevenLabs API endpoint at https://api.elevenlabs.io/v1.
  • No additional external dependencies are indicated.

Troubleshooting

  • Missing or invalid API key: The node will fail if the API key is not provided or is incorrect. Ensure you have obtained a valid API key from the ElevenLabs dashboard and configured it properly in n8n credentials.
  • API request failures: Network issues or API downtime can cause errors. Check network connectivity and ElevenLabs service status.
  • Permission errors: If the API key lacks permissions to access user subscription info, the API will return authorization errors. Verify the API key's scope and permissions.
  • Unexpected response format: If ElevenLabs changes their API response structure, the node might not parse the output correctly. Keep the node updated to the latest version.

Links and References

Discussion