Vast.ai API
Instances
Create new instance by accepting a provider offer
1min
PUT
https://console.vast.ai/api/v0/asks/{id}/
Production server
Authentication
BearerAuth
Path Parameters
id
*
Body Parameters
body
*
template_id
template_hash_id
image
disk
extra_env
runtype
onstart
label
image_login
price
target_state
cancel_unavail
vm
client_id
apikey_id
Responses
200
Instance created successfully
success
new_contract
400
Bad Request
success
error
msg
ask_id
401
Unauthorized
success
error
msg
403
Forbidden
success
error
msg
ask_id
404
Offer not found
success
error
msg
ask_id
410
Offer no longer available
success
error
msg
ask_id
429
Too Many Requests
detail


Updated 17 Jan 2025
Did this page help you?