Vast.ai API
Instances

Create new instance by accepting a provider offer

1min
PUT
https://console.vast.ai/api/ask

Creates a new instance by accepting an "ask" contract from a provider. This is the main endpoint for launching new instances on Vast.ai.

CLI Usage: vast create instance <offer_id> [options]

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