Download OpenAPI specification:Download
API documentation for our Inventory API. Power your marketplace or application with our comptue resourcces.
If you are a marketplace looking to leverage our GPU inventory please contact us at techadmin@massedcompute.com
Authentication of every endpoint provided requres a API token. We leverage Bearer token authentication on our endpoints.
| Header | Value |
|---|---|
| Authorization | Bearer {{api_token}} |
If you would like to use the API, please contact us at techadmin@massedcompute.com to request a token.
An instance type is a configuration of CPU, memory, and storage.
{- "data": {
- "gpu_type": {
- "instance_type": {
- "name": "gpu_1x_a6000",
- "description": "1x RTX A6000",
- "price_cents_per_hour": 66,
- "specs": {
- "vcpu_count": 6,
- "memory_gib": 48,
- "storage_gb": 256
}
}, - "regions_with_capacity_available": [
- {
- "name": "us-central-1",
- "description": "Wichita, KS"
}
], - "capacity_available": 0
}
}
}An instance is a virtual machine that is currently running.
{- "data": [
- {
- "id": "8b52a46b-a892-4fde-925c-6d13226908f7",
- "name": "Instance Test",
- "ip": "1.1.1.1",
- "status": "active",
- "ssh_key_names": [ ],
- "file_system_names": [ ],
- "region": {
- "name": "us-central-1",
- "description": "Wichita, KS"
}, - "instance_type": {
- "name": "gpu_1x_l40",
- "description": "1x L40",
- "price_cents_per_hour": 99,
- "vcpu": 26,
- "ram": 128,
- "storage": 625
}, - "jupyter_token": "8b52a46b-a892-4fde-925c-6d13226908f7",
}
]
}{- "data": {
- "id": "8b52a46b-a892-4fde-925c-6d13226908f7",
- "name": "Instance Test",
- "ip": "1.1.1.1",
- "status": "active",
- "ssh_key_names": [ ],
- "file_system_names": [ ],
- "region": {
- "name": "us-central-1",
- "description": "Wichita, KS"
}, - "instance_type": {
- "name": "gpu_1x_a6000",
- "description": "1x RTX A6000",
- "price_cents_per_hour": 66,
- "specs": {
- "vcpu_count": 6,
- "memory_gib": 48,
- "storage_gb": 256
}
}, - "jupyter_token": "",
- "jupyter_url": ""
}
}| instance_type_name required | string The name of the instance you want to deploy |
| region_name required | string Set value equal to 'any' |
| ssh_key_names required | Array of strings The SSH key you want to use to connect to the instance. Can be a blank array. |
| file_system_names | Array of strings The file system you want to use to connect to the instance. Can be a blank array. |
| quantity required | integer The number of instances you want to deploy. |
| name | string The name of the instance you want to deploy. |
| os_image_name | string The name of the OS image you want to deploy. |
{- "instance_type_name": "string",
- "region_name": "string",
- "ssh_key_names": [
- "string"
], - "file_system_names": [
- "string"
], - "quantity": 0,
- "name": "string",
- "os_image_name": "string"
}{- "data": {
- "uuid": "8b52a46b-a892-4fde-925c-6d13226908f7"
}
}Termination completely removes the instance from the system and destroys all data. You will no longer be billed
| instance_ids required | Array of strings The ID or IDs of instances to restart |
{- "instance_ids": [
- "string"
]
}{- "data": {
- "terminated_instances": [
- {
- "id": "8b52a46b-a892-4fde-925c-6d13226908f7",
- "name": "Instance Test",
- "ip": "1.1.1.1",
- "status": "terminated",
- "ssh_key_names": [ ],
- "file_system_names": [ ],
- "region": {
- "name": "us-central-1",
- "description": "Wichita, KS"
}, - "instance_type": {
- "name": "gpu_1x_a6000",
- "description": "1x RTX A6000",
- "price_cents_per_hour": 66,
- "specs": {
- "vcpu_count": 6,
- "memory_gib": 48,
- "storage_gb": 256
}
}, - "jupyter_token": "",
- "jupyter_url": ""
}
]
}
}Restarting an instance can only be done to Stopped instances. This takes the instance from a stopped to active state.
| instance_uuids required | Array of strings The ID or IDs of instances to restart |
{- "instance_uuids": [
- "string"
]
}{- "data": {
- "restarted_instances": [
- {
- "id": "8b52a46b-a892-4fde-925c-6d13226908f7",
- "name": "Instance Test",
- "ip": "1.1.1.1",
- "status": "booting",
- "ssh_key_names": [ ],
- "file_system_names": [ ],
- "region": {
- "name": "us-central-1",
- "description": "Wichita, KS"
}, - "instance_type": {
- "name": "gpu_1x_a6000",
- "description": "1x RTX A6000",
- "price_cents_per_hour": 66,
- "specs": {
- "vcpu_count": 6,
- "memory_gib": 48,
- "storage_gb": 256
}
}, - "jupyter_token": "",
- "jupyter_url": ""
}
]
}
}Stopping an instance will halt it without destroying any data. You will still be billed.
| instance_uuids required | Array of strings The ID or IDs of instances to restart |
{- "instance_uuids": [
- "string"
]
}{- "data": {
- "stopped_instances": [
- {
- "id": "8b52a46b-a892-4fde-925c-6d13226908f7",
- "name": "Instance Test",
- "ip": "1.1.1.1",
- "status": "stopping",
- "ssh_key_names": [ ],
- "file_system_names": [ ],
- "region": {
- "name": "us-central-1",
- "description": "Wichita, KS"
}, - "instance_type": {
- "name": "gpu_1x_a6000",
- "description": "1x RTX A6000",
- "price_cents_per_hour": 66,
- "specs": {
- "vcpu_count": 6,
- "memory_gib": 48,
- "storage_gb": 256
}
}, - "jupyter_token": "",
- "jupyter_url": ""
}
]
}
}An SSH key is a secure way to connect to an instance.
| name required | string The name of the SSH key |
| public_key required | string The public key of the SSH key |
{- "name": "string",
- "public_key": "string"
}{- "data": {
- "id": "8b52a46b-a892-4fde-925c-6d13226908f7",
- "name": "Add SSH Key Test"
}
}