メインコンテンツへスキップ

Connect Vast.ai

The Vast.ai integration imports your account's GPU consumption into Cloud Intelligence™. Use Cloud Analytics to analyze Vast.ai spend by workload, GPU model, component and day, next to your other clouds.

Prerequisites​

  • A Vast.ai account with rented instances or serverless endpoints.
  • A DoiT account with the Billing Profiles Admin permission.

Connect each Vast.ai account separately.

Create an API key​

  1. Sign in to the Vast.ai console and open Account.
  2. Go to API Keys and create a key.
  3. Give it read access to billing and instances. DoiT never writes to your account, so no write permissions are needed.
  4. Copy the key. Vast.ai shows it only once.

Connect your account​

  1. Sign in to Cloud Intelligence.
  2. Open Data ingestion and integrations > Integrations and find Vast.ai.
  3. Select Connect +.
  4. Enter an Account name to identify the connection in DoiT, and the API key.
  5. Select Test connection, then Save after the test succeeds.

The connection test reads the current day's charges. A new account with no usage yet can pass the test.

What is imported​

Reporting dimensionVast.ai value
ProviderVast.ai
Billing accountThe account name you entered
WorkloadThe serverless endpoint, or the rented instance
ServiceServerless Inference, or GPU Instance
SKUThe billed component, with the GPU model on GPU time
RegionCountry of the host machine
DateUsage day, in UTC

Vast.ai bills four components per instance per day, and each becomes its own line:

ComponentWhat it covers
GPU timeHours of GPU rental
StorageHours of instance disk
Bandwidth (download)Inbound data transfer, in GB
Bandwidth (upload)Outbound data transfer, in GB

Labels include Charge type, Component, Instance, Serverless endpoint, GPU model, Location and the instance template name.

AI spend​

All Vast.ai spend is reported as GenAI spend, whether it comes from a serverless endpoint or an instance you rent directly, and appears on the GenAI dashboards. Use the Charge type label to separate serverless from rented instances.

Vast.ai's billing data contains no model name and no token counts, so Vast.ai spend is not broken down by model or by input and output tokens. Reports grouped by model show it without one.

Credits​

Vast.ai credit top-ups are not imported. Credit is a prepaid balance rather than consumption, so counting a top-up as cost would double-count the spend it later pays for.

Hardware and location​

GPU model, host machine and location come from Vast.ai's list of your current instances, which does not include instances that have already been destroyed. An instance created and destroyed within a few hours is still billed in full, but may be reported without a GPU model or location.

Refresh​

DoiT reads your Vast.ai charges every six hours and reloads the last four days each time. Vast.ai bills against the UTC day and charges accrue through the day while your instances run, so the current day's cost rises until that day closes, and a day's figure can still change shortly after midnight UTC.

Troubleshooting​

The connection test fails. Check that the key was copied in full and has not been deleted in the Vast.ai console. Vast.ai rejects a missing or invalid key with an authorization error.

No costs appear for a day with usage. Costs are reported against the UTC day. If your instances ran late in your local evening, the spend may fall on the next UTC day.

A cost line has no GPU model. The instance was destroyed before DoiT last read your instance list. See Hardware and location.