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.
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')