Skip to main content
Connect Vast.ai to compare GPU rental, storage, and bandwidth costs alongside your other providers. CostGraph imports renter charges, with separate daily records for each instance or volume and charge type. Host earnings and credit top-ups are not included.

Choose how to import

Let CostGraph fetch the data, or run the import in your own infrastructure.

Connect your account

Supply an API key and let CostGraph fetch charges daily.

Run your own import

Keep the Vast.ai key in your environment and send FOCUS records to CostGraph.

Before you begin

Create an API key for the account that rents the instances. In the Vast.ai console, open Keys. The CostGraph connection form also links to key creation.

Let CostGraph pull

Open Integrations and select Vast.ai.
1

Choose the connection's tenant

Name the connection and select the tenant that owns these charges.
2

Enter the Vast.ai key

Enter the renter account’s API key and select Connect. CostGraph checks the credentials before saving them and reports a failed check on the form.
3

Check the imported spend

After the import, open your cost overview for the selected tenant and filter to Vast.ai. Compare daily charges with the same dates in the Vast.ai console.Check GPU, storage, and bandwidth separately. Storage can continue billing after GPU work stops.
CostGraph stores the key encrypted. Revoking it in Vast.ai stops subsequent imports.

Run the exporter

Run the exporter when you want to keep the Vast.ai credential in your own environment. Configure VAST_API_KEY and the CostGraph sink credentials using Run the exporter. Start the exporter with the Vast.ai provider and CostGraph sink.
The exporter reads charges and sends FOCUS records to CostGraph. You can run it as a container, Kubernetes CronJob, or binary. Check the imported spend using the same comparison described in Let CostGraph pull.

Push cost data

If you already produce FOCUS records, follow Push FOCUS data for the connection ID, focus:write key, and request format.

Cost processing

CostGraph normalizes the imported records into daily costs. GPU, storage, and bandwidth remain separate service lines in cost views and anomaly analysis.