Vast.ai API
Accounts

create ssh-key

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

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




Updated 14 Feb 2025
Did this page help you?