Vast AI icon

Vast AI

Get all informations of an account.

Overview

This node integrates with the Vast AI API, allowing users to perform various serverless operations related to Vast AI's cloud infrastructure. It supports multiple API groups and endpoints, enabling management of instances, billing, accounts, search, templates, volumes, and specifically serverless resources such as autogroups and endpoints.

The "Serverless" operation focuses on interacting with Vast AI's serverless features, including retrieving information about autogroups and endpoints.

Practical scenarios include:

  • Automating retrieval of serverless autogroup configurations.
  • Fetching details about serverless endpoints for monitoring or integration.
  • Using Vast AI's serverless API capabilities within an n8n workflow to manage or query serverless resources dynamically.

Properties

Name Meaning
API Group Name or ID Select the specific API endpoint to call within the Serverless resource. Options are:
- Show Autogroup (GET)
- Show Endpoints (GET)
Body The request body parameters for the API call. Blank if the HTTP method is GET.
  Parameter Name or ID Choose a parameter name or ID relevant to the selected API call. Loaded dynamically based on the API selection.
  Value The value corresponding to the selected parameter name.

Output

The node outputs JSON data representing the response from the Vast AI API for the selected serverless endpoint. The structure depends on the specific API called:

  • For Show Autogroup, it returns details about serverless autogroups.
  • For Show Endpoints, it returns information about serverless endpoints.

No binary data output is produced by this node.

Dependencies

  • Requires an API key credential for Vast AI authentication.
  • The node makes HTTP requests to https://console.vast.ai/api/v0 with appropriate endpoints depending on the selected API.
  • No additional external dependencies beyond the Vast AI API and n8n's HTTP request helper.

Troubleshooting

  • Missing required path parameters: Some API calls require mandatory path parameters (e.g., IDs). If these are not provided, the node throws errors indicating which parameter is missing. Ensure all required parameters are set.
  • Invalid API key or authentication failure: If the API key credential is invalid or missing, requests will fail. Verify that the API key is correctly configured in n8n credentials.
  • Incorrect API group or parameter selection: Selecting an API or parameter not supported under the Serverless resource may result in empty options or errors. Use the dynamic dropdowns to select valid options.
  • HTTP errors from Vast AI API: Network issues or API-side errors will propagate as node errors. Check network connectivity and Vast AI service status.

Links and References

Discussion