Build on Vast.ai

CLI, Python SDK, and REST API — everything you need to provision GPU compute programmatically.

CLI

Search, deploy, and manage GPU instances from your terminal. One install command, zero dependencies.

Python SDK

Programmatic access to the Vast.ai platform. pip install vastai.

REST API

Direct HTTP access to every Vast.ai operation. OpenAPI spec available.

Get started in seconds

CLI

curl -fsSL https://vast.ai/install.sh | bash
vastai set api-key YOUR_API_KEY
vastai search offers 'gpu_name=H100_SXM num_gpus>=4'

Python SDK

pip install vastai

from vastai import VastAI
vast = VastAI(api_key="YOUR_API_KEY")
vast.search_offers(query='gpu_name=H100_SXM num_gpus>=4')

Start building

Get your API key and deploy your first GPU in 60 seconds.