cURL
curl --request PUT \ --url https://console.vast.ai/api/v0/volumes/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "id": 420, "size": 15 }'
{ "success": true, "volume_name": "V.20118481" }
Rent/create a new volume with specified parameters.
CLI Usage: vastai create volume <id> --size <size_gb>
vastai create volume <id> --size <size_gb>
API key must be provided in the Authorization header
ID for the volume
420
Size in GB (Defaults to 15)
15
Success response
true
Name of the created/resized volume
"V.20118481"