curl -X 'POST' \
'https://pricing.baselinehq.cloud/pricing' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"availability_zone": "us-east-1a",
"instance_type": "t2.micro",
"operating_system": "linux",
"provider": "aws",
"region": "us-east-1",
"service": "AmazonEC2",
"usage_type": "ondemand",
"vm": {
"cpu_cores": 1,
"ram_gb": 10
}
}'
{
"availability_zone": "us-east-1a",
"cost_per_hour": 0,
"cpu_cores_cost_per_hour": 0,
"instance_type": "t2.micro",
"operating_system": "string",
"provider": "GCP",
"ram_gb_cost_per_hour": 0,
"raw_pricing_data": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"region": "us-east-1",
"service": "ComputeEngine",
"usage_type": "ONDEMAND"
}
Get pricing information for cloud instances
Request Body
The availability zone where the resource will be deployed.Example: us-east-1a, nyc1-b , nyc1-c
The type of instance to get pricing for.Example: n2-custom-1-1024-ext
The operating system of the instance.Example: linux
The cloud provider.Example: aws,gcp,azure,ovh,hetzner,digitalocean
The region where the resource will be deployed.Example: us-east1,ncyc1,eu-central
The cloud service name.Example: ComputeEngine,AmazonEC2,Droplet,AzureCompute,HetznerCompute,OVHPublicCloud,BaseCompute
The type of usage.Example: SPOT_PREEMPTIBLE,ONDEMAND,RESERVED,ONDEMAND_CUSTOM,SPOT_PREEMPTIBLE_CUSTOM,RESERVED_CUSTOM,SOLE_TENANCY,CUSTOM,EXTENDED
Virtual machine specifications.
Number of CPU cores.Example: 1
Amount of RAM in gigabytes.Example: 10
Response
The availability zone of the resource.
The total cost per hour for the resource.Example: 0.073981
The cost per hour for CPU cores.Example: 0.031611
The type of instance.Example: N2
The operating system of the instance.
The cloud provider.Example: GCP
The cost per hour for RAM.Example: 0.004237
Detailed pricing information from the cloud provider.
Contains service-specific pricing details including resource family, resource group, service display name, and usage type.
The region where the resource is deployed.Example: us-east-1
The cloud service name.Example: ComputeEngine
The type of usage.Example: ONDEMAND