Overview
This node integrates with the Vast AI platform's API, allowing users to perform various serverless operations by selecting an API group and specifying request parameters. It is designed to interact with Vast AI's serverless endpoints, enabling automation of tasks such as querying autogroups or endpoints.
Common scenarios include:
- Retrieving information about serverless autogroups or endpoints.
- Automating management or monitoring of serverless resources on Vast AI.
- Integrating Vast AI serverless data into workflows for further processing or decision-making.
For example, a user might use this node to fetch all available serverless endpoints and then trigger downstream actions based on their status or configuration.
Properties
| Name | Meaning |
|---|---|
| API Group Name or ID | Select the specific serverless API endpoint to call. Options include "Show Autogroup" and "Show Endpoints". You can also specify an ID using an expression. |
| Body | The body of the HTTP request sent to the API. This is a collection of key-value pairs representing parameters required by the selected API. For GET methods, this is typically blank. |
The "Body" property supports multiple entries, each with:
- Parameter Name or ID: The name or identifier of the parameter to send.
- Value: The string value assigned to that parameter.
Output
The node outputs JSON data corresponding to the response from the Vast AI API for the selected serverless operation. The structure of the JSON depends on the specific API called but generally contains detailed information about serverless autogroups or endpoints.
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 base URL
https://console.vast.ai/api/v0. - Proper configuration of the Vast AI API key in n8n credentials is necessary.
Troubleshooting
- Missing Required Path Parameter Errors: If a required path parameter (e.g.,
idorinstance_id) is not provided in the input properties, the node will throw an error indicating which parameter is missing. Ensure all required parameters are set correctly. - Authentication Failures: If the API key credential is invalid or missing, requests will fail. Verify the API key is correctly configured in n8n.
- Invalid API Group or Parameter Names: Selecting an unsupported API group or providing incorrect parameter names may cause errors or unexpected responses. Use the provided options or expressions carefully.
- HTTP Request Failures: Network issues or API downtime can cause request failures. Check network connectivity and Vast AI service status.
Links and References
- Vast AI API Documentation (for detailed API usage and parameters)
- n8n Expressions Documentation (for using expressions in property fields)