Vast.ai API
Accounts

Create a new SSH key

1min
POST
https://console.vast.ai/api/v0/ssh/

Creates a new SSH key and associates it with your account. The key will be automatically added to all your current instances.

CLI Usage: vast create ssh-key <ssh_key> Example: vast create ssh-key "ssh-rsa AAAAB3NzaC1..."

Authentication
BearerAuth
Body Parameters
body
*
ssh_key
*
Responses
200
SSH key created successfully
success
key
400
Bad Request
success
error
msg
401
Unauthorized
success
error
msg
429
Too Many Requests
detail