Vast AI icon

Vast AI

Get all informations of an account.

Overview

This node integrates with the Vast AI platform API, allowing users to perform various operations related to cloud instances, billing, search, templates, and volumes. Specifically for the "Volumes" resource and "Volumes" operation, it supports listing volumes available in the Vast AI environment.

Common scenarios where this node is beneficial include:

  • Automating management of cloud storage volumes on Vast AI.
  • Retrieving volume information programmatically for monitoring or reporting.
  • Integrating Vast AI volume data into workflows that require dynamic access to storage resources.

For example, a user might use this node to list all volumes attached to their account or available in the Vast AI system, then process or filter these volumes further downstream in an n8n workflow.

Properties

Name Meaning
API Group Name or ID Selects the specific API endpoint/action to call within the chosen operation. For Volumes, options include "List Volumes". You can choose from a dropdown or specify an ID via expression.
Body A collection of key-value pairs representing parameters sent in the request body (for non-GET methods) or query parameters (for GET). Each entry has:
- Parameter Name or ID: The name of the parameter to send.
- Value: The string value for that parameter.

Output

The node outputs JSON data returned by the Vast AI API corresponding to the selected API action. For the "Volumes" operation with "List Volumes" API, the output JSON contains details about volumes such as volume IDs, sizes, statuses, and other metadata as provided by Vast AI.

No binary data output is produced by this node.

Example output structure (simplified):

{
  "volumes": [
    {
      "id": "volume_id_1",
      "size_gb": 100,
      "status": "available",
      "attached_to": "instance_id"
    },
    {
      "id": "volume_id_2",
      "size_gb": 50,
      "status": "in-use",
      "attached_to": "instance_id"
    }
  ]
}

Dependencies

  • Requires an API key credential for Vast AI authentication.
  • The node makes HTTP requests to the Vast AI API endpoint https://console.vast.ai/api/v0.
  • No additional external dependencies are required beyond the configured API key credential.

Troubleshooting

  • Missing Required Path Parameters: Some API calls require mandatory path parameters like id or instance_id. If these are missing, the node throws errors indicating which parameter is missing. Ensure all required parameters are provided.
  • Authentication Errors: If the API key is invalid or missing, requests will fail. Verify the API key credential is correctly set up.
  • Invalid API Group or Parameter Names: Selecting an unsupported API group or providing incorrect parameter names may cause errors or unexpected results. Use the dropdown options or valid expressions.
  • HTTP Request Failures: Network issues or Vast AI service downtime can cause request failures. Check network connectivity and Vast AI service status.

Links and References

Discussion