POST
/
api
/
v1
/
disks
/
Create Disk
curl --request POST \
  --url https://api.primeintellect.ai/api/v1/disks/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "disk": {
    "size": 123,
    "name": "<string>",
    "country": "<string>",
    "cloudId": "<string>",
    "dataCenterId": "<string>"
  },
  "provider": {
    "type": "runpod"
  },
  "team": {
    "teamId": "<string>"
  }
}'
{
  "id": "<string>",
  "name": "<string>",
  "remoteId": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "terminatedAt": "2023-11-07T05:31:56Z",
  "status": "PROVISIONING",
  "providerType": "runpod",
  "size": 0,
  "info": {},
  "priceHr": 123,
  "stoppedPriceHr": 123,
  "provisioningPriceHr": 123,
  "userId": "<string>",
  "teamId": "<string>",
  "walletId": "<string>",
  "pods": [],
  "clusters": []
}

Authorizations

Authorization
string
header
required

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

Body

application/json
disk
object
required
provider
object
required
team
object | null

Response

Successful Response

name
string
required

Name of the disk.

Maximum length: 255
remoteId
string
required

ID of the disk in the remote system.

providerType
enum<string>
required

Type of provider associated with the disk.

Available options:
runpod,
fluidstack,
lambdalabs,
hyperstack,
oblivus,
cudocompute,
scaleway,
tensordock,
datacrunch,
latitude,
crusoecloud,
massedcompute,
akash,
primeintellect,
primecompute,
dc_impala,
dc_kudu,
dc_roan,
nebius,
dc_eland,
dc_wildebeest,
dc_gnu
id
string

Unique identifier for the disk, generated as a UUID.

createdAt
string<date-time>

Timestamp when the disk was created.

updatedAt
string<date-time>

Timestamp when the disk was last updated.

terminatedAt
string<date-time> | null

Timestamp when the disk was terminated.

status
enum<string>

Current status of the disk.

Available options:
PROVISIONING,
PENDING,
ACTIVE,
STOPPED,
ERROR,
DELETING,
UNKNOWN,
TERMINATED
size
integer
default:0

Size of the disk in GB.

info
object | null

JSON field for additional information about the disk.

priceHr
number | null

Hourly price for using the disk.

stoppedPriceHr
number | null

Hourly price when the disk is stopped.

provisioningPriceHr
number | null

Hourly price during provisioning.

userId
string | null

ID of the user associated with this disk.

teamId
string | null

ID of the team owning this disk.

walletId
string | null

ID of the wallet associated with this disk.

pods
string[]

Pods attached to the disk.

clusters
string[]

Clusters attached to the disk.