Vast.ai API
Templates

create template

1min
POST
https://console.vast.ai/api/v0/template/
Production server

Creates a new template for launching instances. If an identical template already exists, returns the existing template instead of creating a duplicate.

CLI Usage: vast create template [options]

Authentication
BearerAuth
Body Parameters
body
*
image
*
tag
env
onstart
jup_direct
ssh_direct
use_jupyter_lab
runtype
use_ssh
jupyter_dir
docker_login_repo
extra_filters
recommended_disk_space
Responses
200
Template created or existing template found
success
msg
template
400
Bad request - invalid parameters
success
msg
401
Unauthorized - invalid or missing API key
429
Rate limit exceeded