Overview
This node integrates with the Vast AI platform, allowing users to interact with various Vast AI API endpoints related to account information and other resources. Specifically, for the "Default" resource and "Accounts" operation, it enables retrieving detailed information about an account such as API keys, connections, environment variables, subaccounts, and user details.
Common scenarios where this node is beneficial include:
- Automating retrieval of account-related data from Vast AI for monitoring or reporting.
- Managing Vast AI account configurations programmatically within workflows.
- Integrating Vast AI account data into broader automation pipelines.
Practical example:
- A workflow that periodically fetches the current user's account details and updates a dashboard or triggers alerts based on specific account metrics.
Properties
| Name | Meaning |
|---|---|
| API Group Name or ID | Selects the specific API endpoint related to accounts to call. Options include: |
| - Show API Keys | |
| - Show Connections | |
| - Show Env Vars | |
| - Show Subaccounts | |
| - Show User | |
| Body | The request body parameters sent with the API call (if applicable). Supports multiple key-value pairs. Each pair consists of: |
| - Parameter Name or ID | The name or identifier of the parameter to send in the request body. |
| - Value | The value corresponding to the parameter name. |
Output
The node outputs JSON data representing the response from the Vast AI API for the selected account-related endpoint. The structure of the JSON depends on the specific API called but generally includes detailed account information such as lists of API keys, connection details, environment variables, subaccount info, or user profile data.
No binary data output is produced by this node.
Dependencies
- Requires an API authentication token credential for Vast AI to authorize requests.
- The node makes HTTP requests to the Vast AI API base URL
https://console.vast.ai/api/v0. - No additional external dependencies are required beyond standard HTTP access and the provided credentials.
Troubleshooting
- Missing Required Path Parameters: Some API calls require specific path parameters (e.g.,
id,user_id). If these are not provided, the node will throw an error indicating which parameter is missing. Ensure all required parameters are set in the input properties. - Invalid API Group or Parameter Names: Selecting an unsupported API group or parameter may cause errors or empty responses. Use the provided dropdown options or valid expressions.
- Authentication Errors: If the API key credential is invalid or missing, the node will fail to authenticate. Verify the API key is correctly configured in n8n credentials.
- HTTP Request Failures: Network issues or Vast AI service outages can cause request failures. Check network connectivity and Vast AI service status if errors occur.
Links and References
- Vast AI API Documentation
- n8n Expressions Documentation (for using expressions in property fields)