For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

GPU Cloud instances

The following endpoints allow to create and manage GPU Cloud instances from the API.

Get the list of available offers

Use this endpoint when you want to explore the different GPU instance options available for your project. This is particularly useful when planning new deployments and needing to compare offers to find the best fit in terms of cost and performance.

Double-check all inputs in the request body to ensure successful creation.

get
Query parameters
regionstringOptional
numGpusstringOptional
gpuTypestringOptional
availablebooleanOptional
sortstring · enumOptionalPossible values:
deploymentTypestring · enumOptionalPossible values:
Header parameters
x-api-keystringRequired

The API Key secret should be sent through this header to authenticate the request.

Example: ses_cloud_NjczNzI4M2UzNjUxMDU2YWYxOGZjMj...
Responses
200

Returns the list of available offers for instances

application/json
gpuNamestringRequiredExample: A6000
gpuCountnumberRequiredExample: 8
nvlinkbooleanRequiredExample: true
deploymentTypestringRequiredExample: vm
instanceIdstringRequiredExample: A6000x8
cloudInitAvailablebooleanRequiredExample: true
hourlyPricenumberRequiredExample: 10
get/gpu-cloud/instances/offers
GET /gpu-cloud/instances/offers HTTP/1.1
x-api-key: ses_cloud_NjczNzI4M2UzNjUxMDU2YWYxOGZjMj...
Accept: */*
[
  {
    "gpuName": "A6000",
    "gpuCount": 8,
    "nvlink": true,
    "deploymentType": "vm",
    "instanceId": "A6000x8",
    "cloudInitAvailable": true,
    "cloud": {
      "_id": "668f9d8df664e3c028ce5de9",
      "name": "AZ_01"
    },
    "configuration": {
      "ramGB": 100,
      "storageGB": 1000,
      "vCpu": 100,
      "vRamGB": 100,
      "os": [
        "ubuntu22.04_cuda12.2_shade_os"
      ],
      "interconnect": "pcie"
    },
    "hourlyPrice": 10,
    "availability": [
      {
        "region": "us-central-2",
        "name": "US, Central",
        "countryCode": "US",
        "available": true
      }
    ]
  }
]

Create a GPU Cloud instance

Use this endpoint when you're ready to launch a new GPU instance for a specific project or task. This is the crucial step to deploy new computing resources.

You can use query parameters to fine-tune search results and find the best offer for your specific needs

post
Header parameters
x-api-keystringRequired

The API Key secret should be sent through this header to authenticate the request.

Example: ses_cloud_NjczNzI4M2UzNjUxMDU2YWYxOGZjMj...
Body
namestringRequiredExample: my-machine-name
cloudProviderstringRequiredExample: 668f9d8df664e3c028ce5de9
instanceIdstringRequiredExample: A6000
volumeIdstringOptionalExample: 668f9d8df664e3c028ce5de9
regionstringRequiredExample: us-east-1
sshKeyIdstringOptionalExample: 668f9d8df664e3c028ce5de9
sshKeystringOptionalExample: ssh-rsa AAAAB3NzaC1yc2EADAQABAAAAgQDsl21/gI87CHcHX21sNAwckJNdCXMlOKcQVZBxEsEE9FNpxWu8VIJl8kNBYm0oBiDvTOgtC7ru+mz2MJBsBlnFxT732LUDwf1otPPzQ3jUEtFFfYqWN4lyGJ4tLLTuPmXCrNM+rt00nzlGS0WFvjszjw== abcd@gmail.com
Responses
201

Return the created instance

application/json
_idstringRequiredExample: 668f9d8df664e3c028ce5de9
namestringRequiredExample: my-machine-name
providerstringRequiredExample: AZ_01
regionobjectRequiredExample: {"name":"USA-Central-1","countryCode":"US"}
statusstring · enumRequiredExample: activePossible values:
gpuCountnumberRequiredExample: 1
gpuModelstringRequiredExample: A100
ramnumberRequiredExample: 100
storagenumberRequiredExample: 100
vramPerGpunumberRequiredExample: 100
vcpusnumberRequiredExample: 1
interconnectstringRequiredExample: VM
nvlinkbooleanRequiredExample: true
osstringRequiredExample: Ubuntu 20.04
ipstringRequiredExample: 192.168.1.1
sshUserstringRequiredExample: sesterce
sshPortnumberRequiredExample: 22
dockerImagestringRequiredExample: ubuntu/20.04
dockerCommandstringRequiredExample: docker run -it ubuntu/20.04
hourlyPricenumberRequiredExample: 100
deletedAtstring · date-timeRequiredExample: 2021-01-01T00:00:00.000Z
createdAtstring · date-timeRequiredExample: 2021-01-01T00:00:00.000Z
updatedAtstring · date-timeRequiredExample: 2021-01-01T00:00:00.000Z
post/gpu-cloud/instances
POST /gpu-cloud/instances HTTP/1.1
x-api-key: ses_cloud_NjczNzI4M2UzNjUxMDU2YWYxOGZjMj...
Content-Type: application/json
Accept: */*
Content-Length: 625

{
  "name": "my-machine-name",
  "cloudProvider": "668f9d8df664e3c028ce5de9",
  "instanceId": "A6000",
  "volumeId": "668f9d8df664e3c028ce5de9",
  "region": "us-east-1",
  "vm": {
    "os": "ubuntu22.04_cuda12.2_shade_os",
    "base64CloudInitScript": "IyEvYmluL2Jhc2gKCiMgRW5kbGVzcyBsb29wCndoaWxlIHRydWUKZG8KICAgICMgRmV0Y2ggYSBjYXQgZmFjdCB3aXRoIG..."
  },
  "dockerContainer": {
    "image": "vllm/vllm-openai:latest"
  },
  "sshKeyId": "668f9d8df664e3c028ce5de9",
  "sshKey": "ssh-rsa AAAAB3NzaC1yc2EADAQABAAAAgQDsl21/gI87CHcHX21sNAwckJNdCXMlOKcQVZBxEsEE9FNpxWu8VIJl8kNBYm0oBiDvTOgtC7ru+mz2MJBsBlnFxT732LUDwf1otPPzQ3jUEtFFfYqWN4lyGJ4tLLTuPmXCrNM+rt00nzlGS0WFvjszjw== abcd@gmail.com"
}
{
  "_id": "668f9d8df664e3c028ce5de9",
  "name": "my-machine-name",
  "provider": "AZ_01",
  "region": {
    "name": "USA-Central-1",
    "countryCode": "US"
  },
  "volumes": [
    "668f9d8df664e3c028ce5de9"
  ],
  "status": "active",
  "gpuCount": 1,
  "gpuModel": "A100",
  "ram": 100,
  "storage": 100,
  "vramPerGpu": 100,
  "vcpus": 1,
  "interconnect": "VM",
  "nvlink": true,
  "os": "Ubuntu 20.04",
  "ip": "192.168.1.1",
  "sshUser": "sesterce",
  "sshPort": 22,
  "dockerImage": "ubuntu/20.04",
  "dockerCommand": "docker run -it ubuntu/20.04",
  "hourlyPrice": 100,
  "deletedAt": "2021-01-01T00:00:00.000Z",
  "createdAt": "2021-01-01T00:00:00.000Z",
  "updatedAt": "2021-01-01T00:00:00.000Z"
}

Get the list of instances created

This endpoint is essential for users who want an overview of all the instances they have created. It is ideal for managing and monitoring current resources.

Ensure your API key is active and correctly entered to view your instances.

get
Query parameters
deploymentTypestring · enumOptionalPossible values:
Header parameters
x-api-keystringRequired

The API Key secret should be sent through this header to authenticate the request.

Example: ses_cloud_NjczNzI4M2UzNjUxMDU2YWYxOGZjMj...
Responses
200

Returns the list of user instances

application/json
_idstringRequiredExample: 668f9d8df664e3c028ce5de9
namestringRequiredExample: my-machine-name
providerstringRequiredExample: AZ_01
regionobjectRequiredExample: {"name":"USA-Central-1","countryCode":"US"}
statusstring · enumRequiredExample: activePossible values:
gpuCountnumberRequiredExample: 1
gpuModelstringRequiredExample: A100
ramnumberRequiredExample: 100
storagenumberRequiredExample: 100
vramPerGpunumberRequiredExample: 100
vcpusnumberRequiredExample: 1
interconnectstringRequiredExample: VM
nvlinkbooleanRequiredExample: true
osstringRequiredExample: Ubuntu 20.04
ipstringRequiredExample: 192.168.1.1
sshUserstringRequiredExample: sesterce
sshPortnumberRequiredExample: 22
dockerImagestringRequiredExample: ubuntu/20.04
dockerCommandstringRequiredExample: docker run -it ubuntu/20.04
hourlyPricenumberRequiredExample: 100
deletedAtstring · date-timeRequiredExample: 2021-01-01T00:00:00.000Z
createdAtstring · date-timeRequiredExample: 2021-01-01T00:00:00.000Z
updatedAtstring · date-timeRequiredExample: 2021-01-01T00:00:00.000Z
get/gpu-cloud/instances
GET /gpu-cloud/instances HTTP/1.1
x-api-key: ses_cloud_NjczNzI4M2UzNjUxMDU2YWYxOGZjMj...
Accept: */*
[
  {
    "_id": "668f9d8df664e3c028ce5de9",
    "name": "my-machine-name",
    "provider": "AZ_01",
    "region": {
      "name": "USA-Central-1",
      "countryCode": "US"
    },
    "volumes": [
      "668f9d8df664e3c028ce5de9"
    ],
    "status": "active",
    "gpuCount": 1,
    "gpuModel": "A100",
    "ram": 100,
    "storage": 100,
    "vramPerGpu": 100,
    "vcpus": 1,
    "interconnect": "VM",
    "nvlink": true,
    "os": "Ubuntu 20.04",
    "ip": "192.168.1.1",
    "sshUser": "sesterce",
    "sshPort": 22,
    "dockerImage": "ubuntu/20.04",
    "dockerCommand": "docker run -it ubuntu/20.04",
    "hourlyPrice": 100,
    "deletedAt": "2021-01-01T00:00:00.000Z",
    "createdAt": "2021-01-01T00:00:00.000Z",
    "updatedAt": "2021-01-01T00:00:00.000Z"
  }
]

Get details about a GPU Cloud instance created

This endpoint is useful when you need to check the details and status of a specific instance, for example, for troubleshooting or configuration verification.

Use the instance ID from your list to quickly retrieve detailed information.

get
Path parameters
idstringRequired
Header parameters
x-api-keystringRequired

The API Key secret should be sent through this header to authenticate the request.

Example: ses_cloud_NjczNzI4M2UzNjUxMDU2YWYxOGZjMj...
Responses
200

Return the instance's details

application/json
_idstringRequiredExample: 668f9d8df664e3c028ce5de9
namestringRequiredExample: my-machine-name
providerstringRequiredExample: AZ_01
statusstring · enumRequiredExample: activePossible values:
regionobjectRequiredExample: {"name":"USA-Central-1","countryCode":"US","id":"us-central-1"}
sshKeyobjectRequiredExample: {"_id":"668f9d8df664e3c028ce5de9","name":"my-ssh-key","publicKey":"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDA","createdAt":"2021-01-01T00:00:00.000Z","updatedAt":"2021-01-01T00:00:00.000Z"}
createdAtstring · date-timeRequiredExample: 2021-01-01T00:00:00.000Z
deletedAtstring · date-timeRequiredExample: 2021-01-01T00:00:00.000Z
isPendingbooleanRequiredExample: true
hourlyPricenumberRequiredExample: 0.15
ipstringRequiredExample: 127.0.0.1
sshUserstringRequiredExample: sesterce
sshPortnumberRequiredExample: 22
portForwardsstring[]RequiredExample: [{"internalPort":80,"externalPort":8080}]
gpuCountnumberRequiredExample: 1
gpuModelstringRequiredExample: A100
ramnumberRequiredExample: 100
storagenumberRequiredExample: 100
vramPerGpunumberRequiredExample: 100
vcpusnumberRequiredExample: 1
interconnectstringRequiredExample: pcie
nvlinkbooleanRequiredExample: true
osstringRequiredExample: ubuntu24.04
dockerImagestringRequiredExample: ubuntu/20.04
dockerCommandstringRequiredExample: docker run -it ubuntu/20.04
get/gpu-cloud/instances/{id}
GET /gpu-cloud/instances/{id} HTTP/1.1
x-api-key: ses_cloud_NjczNzI4M2UzNjUxMDU2YWYxOGZjMj...
Accept: */*
{
  "_id": "668f9d8df664e3c028ce5de9",
  "name": "my-machine-name",
  "provider": "AZ_01",
  "status": "active",
  "region": {
    "name": "USA-Central-1",
    "countryCode": "US",
    "id": "us-central-1"
  },
  "volumes": [
    "668f9d8df664e3c028ce5de9"
  ],
  "sshKey": {
    "_id": "668f9d8df664e3c028ce5de9",
    "name": "my-ssh-key",
    "publicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDA",
    "createdAt": "2021-01-01T00:00:00.000Z",
    "updatedAt": "2021-01-01T00:00:00.000Z"
  },
  "createdAt": "2021-01-01T00:00:00.000Z",
  "deletedAt": "2021-01-01T00:00:00.000Z",
  "isPending": true,
  "hourlyPrice": 0.15,
  "ip": "127.0.0.1",
  "sshUser": "sesterce",
  "sshPort": 22,
  "portForwards": [
    {
      "internalPort": 80,
      "externalPort": 8080
    }
  ],
  "gpuCount": 1,
  "gpuModel": "A100",
  "ram": 100,
  "storage": 100,
  "vramPerGpu": 100,
  "vcpus": 1,
  "interconnect": "pcie",
  "nvlink": true,
  "os": "ubuntu24.04",
  "dockerImage": "ubuntu/20.04",
  "dockerCommand": "docker run -it ubuntu/20.04"
}

Delete a GPU Cloud instance

If needed, ensure data backup before deleting instances to prevent data loss. Discover how to create persistent storage through the following endpoint.

Use this endpoint when you want to free up resources by deleting an instance that is no longer needed, optimizing your resource usage and costs.

delete
Path parameters
idstringRequired
Header parameters
x-api-keystringRequired

The API Key secret should be sent through this header to authenticate the request.

Example: ses_cloud_NjczNzI4M2UzNjUxMDU2YWYxOGZjMj...
Responses
204

Instance deleted successfully

No content

delete/gpu-cloud/instances/{id}
DELETE /gpu-cloud/instances/{id} HTTP/1.1
x-api-key: ses_cloud_NjczNzI4M2UzNjUxMDU2YWYxOGZjMj...
Accept: */*

No content

Last updated