Vast.ai API
Instances

manage instance

1min
PUT
https://console.vast.ai/api/v0/instances/{id}/
Production server

Manage instance state and labels. The operation is determined by the request body parameters.

CLI Usage:

  • To stop: vastai stop instance
  • To start: vastai start instance
  • To label: vastai label instance
Authentication
BearerAuth
Path Parameters
id
*
Body Parameters
body
*
Description
At least one of these parameters should be provided
state
label
Responses
200
Operation completed successfully
success
400
Bad Request
success
error
msg
401
Unauthorized
success
error
msg
404
Not Found
success
error
msg
429
Too Many Requests
detail