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.Documentation Index
Fetch the complete documentation index at: https://vastai-80aa3a82-fix-stale-links.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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 onlycurl.
Reference sections
| Section | What’s covered |
|---|---|
| Authentication | Bearer-token auth, API key generation and management |
| Permissions | Scoped API keys, role-based access |
| Rate limits & errors | Per-endpoint limits, error codes, retry guidance |
| Creating instances | Search-and-rent flow, configuration options |
| Templates | Template fields, creation, instance launch |
| Endpoints | Full OpenAPI reference for every endpoint |
Base URL
Authorization: Bearer $VAST_API_KEY. Get your key from the Keys page.