Vast.ai API
Instances

recycle instance

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

Destroys and recreates container in place (from newly pulled image) without losing GPU priority. Updates container status to 'recycling' and executes docker stop/remove commands on the host machine.

CLI Usage: vastai recycle instance

Authentication
BearerAuth
Path Parameters
id
*
Responses
200
Instance recycle initiated successfully
success
400
Bad Request - Invalid instance ID
success
error
msg
401
Unauthorized
success
error
msg
429
Too Many Requests
detail