Vast.ai API
Accounts

Create new user account or subaccount

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

Creates either a standalone user account or a subaccount under a parent account. Subaccounts can be restricted to host-only functionality.

CLI Usage: vastai create subaccount --email EMAIL --username USERNAME --password PASSWORD --type host

Authentication
BearerAuth
Body Parameters
body
*
email
*
username
*
password
*
host_only
parent_id
ssh_key
captcha
Responses
200
Account created successfully
Example
{"id":12345,"username":"testuser","email":"[email protected]","api_key":"abc123def456"}
id
username
email
api_key
400
Bad Request
Example
{"error":"invalid_email","msg":"Email address not allowed"}
error
msg
403
Forbidden - billing blacklisted
success
error
msg
409
User already exists
Example
{"error":"user_exists","msg":"user already exists."}
error
msg
429
Too Many Requests
detail