Vast AI icon

Vast AI

Get all informations of an account.

Overview

This node integrates with the Vast AI API to perform various account-related operations. It allows users to retrieve detailed information about their Vast AI accounts, such as API keys, connections, environment variables, subaccounts, and user details. This node is useful for automating account management tasks, auditing account data, or integrating Vast AI account information into broader workflows.

Practical examples include:

  • Fetching all API keys associated with an account to audit access.
  • Retrieving current user details for personalization or logging.
  • Listing subaccounts under a main account for organizational purposes.
  • Accessing environment variables set in the account for configuration management.

Properties

Name Meaning
API Group Name or ID Select the specific API endpoint related to account operations. Options include:
- Show API Keys
- Show Connections
- Show Env Vars
- Show Subaccounts
- Show User
Body The request body parameters (key-value pairs) sent with the API call. Blank if the method is GET.
Parameter Name or ID Choose the parameter name or ID for the request body from a list or specify via expression.
Value The value corresponding to the selected parameter name or ID.

Output

The node outputs JSON data representing the response from the Vast AI API for the selected account operation. The structure of the JSON depends on the specific API endpoint called but generally includes:

  • Lists of objects (e.g., API keys, connections, subaccounts).
  • Detailed user or account information objects.
  • Metadata related to the requested resource.

No binary data output is produced by this node.

Dependencies

  • Requires an API key credential for Vast AI to authenticate requests.
  • The node makes HTTP requests to the Vast AI API endpoint at https://console.vast.ai/api/v0.
  • Proper configuration of the API key credential in n8n is necessary for successful execution.

Troubleshooting

  • Missing Required Path Parameters: Some API calls require mandatory path parameters (e.g., id, instance_id). If these are not provided, the node throws an error indicating which parameter is missing. Ensure all required parameters are set correctly.
  • Invalid API Group or Operation: Selecting an unsupported API group or operation may result in no data or errors. Verify that the chosen API group and operation are valid for the "Accounts" resource.
  • Authentication Errors: If the API key is invalid or missing, the node will fail to authenticate. Confirm that the API key credential is correctly configured and has appropriate permissions.
  • Empty or Incorrect Request Body: For non-GET methods, ensure the request body parameters are correctly specified; otherwise, the API may reject the request.

Links and References

Discussion