Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Provides a Python SDK for managing Vast.ai GPU instances, volumes, serverless endpoints, and billing.
18% 95%+77 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 4 of 22 without it.
This test ran on v2. v3 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
5 agent runs
vastai / vastai_sdk)The vastai package provides a Python SDK for managing GPU instances, volumes, serverless endpoints, and billing on Vast.ai. The vastai_sdk package is a backward-compatibility shim that re-exports vastai.
pip install vastai
For serverless and async support:
pip install "vastai[serverless]"
The SDK reads the API key from ~/.vast_api_key by default. You can also pass it explicitly:
from vastai import VastAI
vast = VastAI() # reads ~/.vast_api_key
vast = VastAI(api_key="YOUR_API_KEY") # explicit key
Get your API key from https://console.vast.ai/manage-keys/
The old vastai_sdk import still works:
from vastai_sdk import VastAI # equivalent to: from vastai import VastAI
from vastai import VastAI
vast = VastAI(api_key=None, server_url=None, retry=3, raw=False, quiet=False)
Next to this one in the catalogue, plus more from the same author.