Cpu
Lists CPU-only instance types.
GET /v2/instance-types only returns instance types with a row in the auctions table, which CPU-only types deliberately don't have (adding one would make them spot-biddable). This is the discovery endpoint for the instance_type FID POST /v2/cpu/instances requires.
Successful Response
it_abc123456h100.80gb.sxm192Intel18008H10080SXM57800InfiniBand840.12GET /v2/cpu/instance-types HTTP/1.1
Host: api.mithril.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful Response
[
{
"fid": "it_abc123456",
"name": "h100.80gb.sxm",
"num_cpus": 192,
"cpu_type": "Intel",
"ram_gb": 1800,
"num_gpus": 8,
"gpu_type": "H100",
"gpu_memory_gb": 80,
"gpu_socket": "SXM5",
"local_storage_gb": 7800,
"network_type": "InfiniBand",
"ib_count": 8,
"bridge_count": 4,
"hourly_price": 0.12
}
]Lists regions where CPU VMs are available (CPU_VMS_ENABLED on).
Discovery endpoint for the region POST /v2/cpu/instances requires - the console offers only these, so a user never picks a region the create would reject. Empty when no cluster is opted in.
Successful Response
64GET /v2/cpu/regions HTTP/1.1
Host: api.mithril.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful Response
[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"block_storage_enabled": true,
"fileshare_storage_enabled": true,
"k8s_enabled": true,
"max_volume_size_tb": 1,
"max_volume_name_length": 64
}
]Creates and instantly launches a self-serve CPU-only instance.
Unlike GPU reservations/spot bids, this is synchronous: the instance is launched in the same request, with no bid price and no auction involvement.
proj_abc123456it_abc123456us-central1-a[]imgver_abc123456Successful Response
inst_abc123456proj_abc1234562024-01-01T00:00:00Zuser_abc123456it_abc123456us-central1-abid_abc123456res_abc123456STATUS_NEWPossible values: Validation Error
POST /v2/cpu/instances HTTP/1.1
Host: api.mithril.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 193
{
"name": "text",
"project": "proj_abc123456",
"instance_type": "it_abc123456",
"region": "us-central1-a",
"volumes": [
"vol_abc123456"
],
"ssh_keys": [
"sshkey_abc123456"
],
"image_version": "imgver_abc123456"
}{
"fid": "inst_abc123456",
"name": "text",
"project": "proj_abc123456",
"created_at": "2024-01-01T00:00:00Z",
"created_by": "user_abc123456",
"instance_type": "it_abc123456",
"region": "us-central1-a",
"bid": "bid_abc123456",
"reservation": "res_abc123456",
"ssh_destination": "text",
"private_ip": "text",
"status": "STATUS_NEW"
}Terminates a CPU-only instance.
Stops the underlying VM, closes the backing order/allocation, and soft-deletes the managed customer cluster.
inst_abc123456Successful Response
No content
Validation Error
DELETE /v2/cpu/instances/{instance_fid} HTTP/1.1
Host: api.mithril.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Last updated