Skip to main content

Connect

Establishes a connection to the Leonardo AI API using an API key for authentication.

Common Properties​

  • Name - The custom name of the node.
  • Color - The custom color of the node.
  • Delay Before (sec) - Waits in seconds before executing the node.
  • Delay After (sec) - Waits in seconds after executing node.
  • Continue On Error - Automation will continue regardless of any error. The default value is false.

Inputs​

This node does not have inputs.

Options​

  • API Key - Your Leonardo AI API key for authentication. Store this securely in the vault.

Outputs​

  • Connection Id (String) - Unique connection identifier for the Leonardo AI API session. Use this ID with other Leonardo AI nodes.

How It Works​

The Connect node establishes an authenticated session with the Leonardo AI API. When executed, the node:

  1. Retrieves the API key from the vault credentials
  2. Validates that the API key is not empty
  3. Creates a connection session with Leonardo AI
  4. Returns a connection ID that can be used by other Leonardo AI nodes

Requirements​

  • Valid Leonardo AI API key
  • API key stored in vault credentials

Error Handling​

The node will return specific errors in the following cases:

  • Empty API key - "API Key cannot be empty. Please provide your Leonardo AI API key in the credentials."
  • Invalid credentials format - "Err.Credentials"

Usage Notes​

  • The connection ID should be passed to subsequent Leonardo AI nodes to maintain the authenticated session
  • Store your API key securely in the Robomotion vault - never hardcode it in your flows
  • You can obtain an API key from your Leonardo AI account settings at https://app.leonardo.ai
  • The connection remains active throughout the flow execution
  • Use the Disconnect node to properly clean up the connection when done