Get instance recommendations, across clouds
curl -X 'POST' \ 'https://pricing.baselinehq.cloud/recommendations' \ -H 'accept: application/json' \ -H 'Authorization: Bearer <your-api-key>' \ -H 'Content-Type: application/json' \ -d '{ "availability_zone": "us-east-1a", "instance_type": "t2.micro", "operating_system": "linux", "predicates": { "availability_zones": ["string"], "instance_types": ["string"], "providers": ["string"], "regions": ["string"], "usage_types": ["string"] }, "provider": "aws", "region": "us-east-1", "service": "AmazonEC2", "usage": { "cpu_cores": 1, "ram_gb": 10 }, "usage_type": "ondemand", "vm": { "cpu_cores": 1, "ram_gb": 10 } }'
{ "base": [ { "instance_pricing": { "cpu_cores_cost_per_hour": 0.031611, "ram_gb_cost_per_hour": 0.004237, "cost_per_hour": 0.073981, "usage_type": "ONDEMAND", "instance_type": "N2", "region": "us-east1", "provider": "GCP", "service": "ComputeEngine", "operating_system": "", "availability_zone": "" }, "vm": null, "savings": { "percentage": 0, "amount_per_hour": 0, "amount_per_month": 0, "amount_per_year": 0 } } ], "c-2": [ { "instance_pricing": { "cpu_cores_cost_per_hour": 0.024671, "ram_gb_cost_per_hour": 0.003289, "cost_per_hour": 0.0625, "usage_type": "ONDEMAND", "instance_type": "c-2", "region": "nyc1", "provider": "DigitalOcean", "service": "Droplet", "operating_system": "", "availability_zone": "" }, "vm": { "cpu_cores": 2, "ram_gb": 4 }, "savings": { "percentage": 15.518, "amount_per_hour": 0.011481, "amount_per_month": 8.381, "amount_per_year": 100.573 } } ] }
us-east-1a
t2.micro
linux
Show Predicates Properties
["us-east-1a", "us-east-1b"]
["t2.micro", "t3.micro"]
["aws", "gcp"]
["us-east-1", "us-west-1"]
["ondemand", "reserved"]
aws
us-east-1
false
AmazonEC2
Show Usage Properties
1
10
ondemand
Show VM Properties
Show Instance Pricing Properties
0.031611
0.004237
0.073981
N2
us-east1
GCP
ComputeEngine
2
4
Show Savings Properties
15.518
0.011481
8.381
100.573