Vast.ai API
Instances
Create new instance by accepting a provider offer
1min
PUT
https://console.vast.ai/api/ask
Authentication
BearerAuth
Body Parameters
body
*
id
*
template_id
template_hash_id
image
disk
env
runtype
onstart
label
image_login
price
target_state
cancel_unavail
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 18 Dec 2024
Did this page help you?