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 pip install, zero dependencies.

Python SDK

Programmatic access to the Vast.ai marketplace. pip install vastai-sdk.

REST API

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

Get started in seconds

CLI

pip install vastai
vastai set api-key YOUR_API_KEY
vastai search offers 'gpu_name=H100_SXM num_gpus>=4'

Python SDK

pip install vastai-sdk

from vastai_sdk 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.