List All Droplet Sizes
client.gpuDroplets.sizes.list(SizeListParams { page, per_page } query?, RequestOptionsoptions?): SizeListResponse { meta, sizes, links }
/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.
Parameters
Returns
List All Droplet Sizes
import Gradient from '@digitalocean/gradient';
const client = new Gradient({
accessToken: 'My Access Token',
});
const sizes = await client.gpuDroplets.sizes.list();
console.log(sizes.meta);
{
"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"
}
}
}Returns Examples
{
"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"
}
}
}