Vast.ai

Rent GPUs by the second through a console, CLI, SDK or API

Advanced API
Screenshot of Vast.ai, Rent GPUs by the second through a console, CLI, SDK or API

What is Vast.ai?

Vast.ai is a GPU rental marketplace with market-set hourly prices across 20,000+ GPUs in 40+ data centers. Users deploy instances, serverless endpoints or clusters from a console, CLI, Python SDK or REST API, with per-second billing and a $5 minimum start.

Vast.ai is a GPU rental marketplace and cloud platform for teams that need compute for AI and machine learning work. Instead of a fixed price list, rates are set by supply and demand across a pool of more than 20,000 GPUs in over 40 data centers, covering 68+ GPU types. Consumer cards such as the RTX 3090, 4090 and 5090 sit alongside data center hardware like the H100, H200 and B200, and the homepage shows live "from" and median hourly prices that refresh hourly. The workflow is built around code. A user adds credit (the minimum is $5), takes an API key from the console, searches offers by model, VRAM, price and availability, and launches an instance. The same steps can be done in the web console, with a command-line tool, with the vastai Python SDK, or through a REST API. A sample on the homepage searches for an eight-GPU H100 SXM offer and launches a vLLM container image on it. Billing is per second, and the site positions the API as the way automated agents can procure and tune their own compute. There are three deployment modes. GPU Cloud gives on-demand instances with full control. Serverless turns models into endpoints with automatic benchmarking across GPU types and scaling to zero, so charges accrue only for compute time. Clusters offer dedicated multi-node setups with InfiniBand networking for large training runs. A model library supplies pre-configured templates for popular open-source models, and use-case pages cover fine-tuning, image and video generation, transcription, rendering, batch processing and GPU programming. Vast.ai also has a hosting side, where owners of hardware and data centers can list capacity and estimate earnings. The company states it is SOC 2 certified and lists customers such as Bosch, IBM, Brave and Inria. Compared with hyperscaler GPU instances, the marketplace model tends to suit cost-sensitive developers, researchers and startups who are comfortable choosing hardware themselves, while managed AI platforms suit teams that want fewer infrastructure decisions.

How do you use Vast.ai?

  1. 1Create an account and add credit
    Sign in to the console and add credit, starting from as little as $5. No contract or sales call is needed.
    Vast.ai — Create an account and add credit
  2. 2Get your API key
    Copy the API key from the console. It authenticates the CLI, the Python SDK and direct REST calls.
    Vast.ai — Get your API key
  3. 3Search for a GPU offer
    Filter offers by GPU model, VRAM, price and availability in the console, or run the same search from the CLI or SDK. Compare live rates on the pricing page first.
    Vast.ai — Search for a GPU offer
  4. 4Launch an instance
    Pick an offer and start it with a container image such as a vLLM or PyTorch template. Instances launch in seconds.
    Vast.ai — Launch an instance
  5. 5Try a prebuilt model template
    Browse the model library to deploy a pre-configured open-source model without writing setup scripts.
  6. 6Scale up or shut down
    Add instances programmatically, move to Serverless or Clusters for larger jobs, and destroy instances when finished to stop per-second charges.

Pros and cons

Pros

  • Market-driven pricing shows live hourly rates, with consumer GPUs listed from a few cents per hourAI
  • Wide hardware choice spanning 68+ GPU types, from RTX 3090 to H200 and B200AI
  • Per-second billing and a $5 starting credit keep experiments cheap and contract-freeAI
  • Console, CLI, Python SDK and REST API all reach the same provisioning workflowAI
  • Serverless and Clusters options extend beyond single instances to inference and large-scale trainingAI

Cons

  • Prices and availability vary by offer, so costs and capacity are less predictable than fixed-rate cloudsAI
  • Choosing GPUs, images and offers yourself assumes comfort with Docker, SSH and infrastructure basicsAI
  • Top-end GPUs such as the H200 NVL are shown with low availability on the homepageAI
  • The homepage gives no details on support channels or uptime guarantees beyond a SOC 2 mentionAI
  • Hardware comes from many hosts across data centers, so quality may differ between offersAI

How much does Vast.ai cost?

Pricing

Prices are set by supply and demand and shown per hour. Examples: RTX 3090 from $0.09/hr, RTX 4090 from $0.14/hr, H100 SXM from $1.68/hr, B200 from $6.25/hr. Billing is per second, with a $5 minimum to start.

Learn more

Support

Documentation, an FAQ and a Contact Sales page are available, plus a Quick Help widget on the site. Support hours and channels are not stated on the homepage.

Learn more

Integrations

Connects through a CLI, a Python SDK (pip install vastai) and a REST API. Instances run container images such as vLLM. Specific third-party integrations are not listed on the homepage.

Learn more

Features

GPU Cloud on-demand instances, Serverless endpoints that autoscale to zero, and multi-node Clusters with InfiniBand. Search and deploy via console, CLI, Python SDK or REST API. Includes a model library of deployable templates, per-second billing and a hosting program for GPU owners.

Learn more

Frequently asked questions about Vast.ai

  • How much does Vast.ai cost?
    Prices are set by supply and demand and shown per hour. Examples: RTX 3090 from $0.09/hr, RTX 4090 from $0.14/hr, H100 SXM from $1.68/hr, B200 from $6.25/hr. Billing is per second, with a $5 minimum to start.
  • Does Vast.ai have an API?
    Yes, Vast.ai offers an API.
  • How do you use Vast.ai?
    The walkthrough on this page covers 6 steps: 1. Create an account and add credit 2. Get your API key 3. Search for a GPU offer 4. Launch an instance 5. Try a prebuilt model template 6. Scale up or shut down.
  • What platforms does Vast.ai support?
    Vast.ai is available on Web App and Linux.
  • What does Vast.ai integrate with?
    Connects through a CLI, a Python SDK (pip install vastai) and a REST API. Instances run container images such as vLLM. Specific third-party integrations are not listed on the homepage.
  • What are the limitations of Vast.ai?
    Prices and availability vary by offer, so costs and capacity are less predictable than fixed-rate clouds. Choosing GPUs, images and offers yourself assumes comfort with Docker, SSH and infrastructure basics. Top-end GPUs such as the H200 NVL are shown with low availability on the homepage.

Status

StatusActive
Views0
Outbound clicks0
Added10/7/2026

Platforms

Web AppLinux

Pricing

Paid