Skip to main content
POST
/
instances
/
create
Create new instance
curl --request POST \
  --url https://api.thundercompute.com:8443/instances/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "cpu_cores": 4,
  "template": "base",
  "gpu_type": "t4",
  "num_gpus": 1,
  "disk_size_gb": 100,
  "mode": "<string>"
}'
{
  "uuid": "<string>",
  "key": "<string>",
  "identifier": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
cpu_cores
integer
default:4

Number of CPU cores

template
string
default:base

Template to use

gpu_type
string
default:t4

GPU type

num_gpus
integer
default:1

Number of GPUs

disk_size_gb
integer
default:100

Disk size in GB

mode
string

Instance mode: 'production' or 'prototyping'

Response

OK

uuid
string

Instance UUID

key
string

SSH private key

identifier
string

Instance identifier