Vast AI icon

Vast AI

Get all informations of an account.

Overview

This node integrates with the Vast AI platform API, specifically focusing on the Billing resource operations. It allows users to interact programmatically with billing-related endpoints such as searching invoices, showing deposits, earnings, and individual invoices.

Typical use cases include:

  • Automating invoice retrieval and processing for accounting or auditing.
  • Monitoring account deposits and earnings over time.
  • Integrating Vast AI billing data into dashboards or reporting tools.

For example, a user could configure this node to fetch all invoices within a date range or retrieve the current deposit balance automatically.

Properties

Name Meaning
API Group Name or ID Select the specific billing API operation to perform. Options include:
- Search Invoices (GET /invoices)
- Show Deposit (GET /{id}/)
- Show Earnings (GET /users/{user_id}/machine-earnings/)
- Show Invoice (GET /users/{user_id}/invoices/)
Body Request body parameters as key-value pairs. Blank if the HTTP method is GET. Used to provide query parameters or request payload depending on the operation.

The "Body" property supports multiple key-value pairs where keys correspond to parameter names or IDs relevant to the selected API operation, and values are their respective inputs.

Output

The node outputs an array of JSON objects, each representing the response from the Vast AI billing API for the executed request(s). The structure depends on the specific billing endpoint called but generally includes:

  • For Search Invoices: A list of invoice records matching the search criteria.
  • For Show Deposit: Details about the deposit identified by the given ID.
  • For Show Earnings: Earnings information related to a specified user.
  • For Show Invoice: Detailed invoice data for a particular user.

No binary data output is produced by this node.

Dependencies

  • Requires an API authentication token credential for Vast AI (an API key).
  • The node makes HTTP requests to the Vast AI API base URL https://console.vast.ai/api/v0.
  • Proper configuration of credentials in n8n is necessary to authorize API calls.

Troubleshooting

  • Missing required path parameter errors: Many billing operations require specific path parameters like id or user_id. If these are not provided in the input properties, the node will throw an error indicating which parameter is missing. Ensure all required parameters are set correctly.
  • Invalid API key or authorization errors: If the API key credential is invalid or missing, requests will fail with authorization errors. Verify that the API key is correct and has sufficient permissions.
  • Empty or malformed responses: Check that the parameters passed in the "Body" property match expected API parameters. Use expressions carefully to ensure valid values.
  • HTTP method mismatches: The node internally handles HTTP methods based on the selected API operation. Avoid manually overriding these settings.

Links and References

Discussion