Skip to main content
The Vast.ai REST API gives you programmatic control over the entire platform. It’s the foundation that the CLI and SDK are built on.
The raw REST API is intended for advanced users only. Most users will have a better experience with the CLI or SDK, which handle authentication, retries, and request shape for you. Reach for the API directly when you need maximum flexibility, are integrating from a non-Python language, or are building tooling on top of Vast.

Quickstart

New to the API? Start with the API Hello World, it walks through the full instance lifecycle (authenticate, search, rent, connect, clean up) using only curl.

Reference sections

Base URL

All endpoints require Authorization: Bearer $VAST_API_KEY. Get your key from the Keys page.