Skip to content
  • Auto
  • Light
  • Dark

List

List All Droplet Sizes
get/v2/sizes

To list all of available Droplet sizes, send a GET request to /v2/sizes. The response will be a JSON object with a key called sizes. The value of this will be an array of size objects each of which contain the standard size attributes.

Query Parameters
pagenumber
optional

Which 'page' of paginated results to return.

minimum1
per_pagenumber
optional

Number of items returned per page

minimum1
maximum200
Returns
metatotalnumberMetaProperties

Information about the response itself.

sizesarray of availablebooleandescriptionstringdisknumbermemorynumberprice_hourlynumberprice_monthlynumberregionsarray of stringslugstringtransfernumbervcpusnumberdisk_infoarray of DiskInfogpu_infoGPUInfoSize
curl https://api.digitalocean.com//v2/sizes \
    -H "Authorization: Bearer $GRADIENTAI_API_KEY"
200 Example
{
  "meta": {
    "total": 64
  },
  "sizes": [
    {
      "available": true,
      "description": "Basic",
      "disk": 25,
      "memory": 1024,
      "price_hourly": 0.00743999984115362,
      "price_monthly": 5,
      "regions": [
        "ams2",
        "ams3",
        "blr1",
        "fra1",
        "lon1",
        "nyc1",
        "nyc2",
        "nyc3",
        "sfo1",
        "sfo2",
        "sfo3",
        "sgp1",
        "tor1"
      ],
      "slug": "s-1vcpu-1gb",
      "transfer": 1,
      "vcpus": 1,
      "disk_info": [
        {
          "size": {
            "amount": 25,
            "unit": "gib"
          },
          "type": "local"
        }
      ],
      "gpu_info": {
        "count": 1,
        "model": "nvidia_h100",
        "vram": {
          "amount": 25,
          "unit": "gib"
        }
      }
    }
  ],
  "links": {
    "pages": {
      "last": "https://api.digitalocean.com/v2/sizes?page=64&per_page=1",
      "next": "https://api.digitalocean.com/v2/sizes?page=2&per_page=1"
    }
  }
}