POST
/
pricing
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"
}
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

availability_zone
string
required
The availability zone where the resource will be deployed.Example: us-east-1a, nyc1-b , nyc1-c
instance_type
string
required
The type of instance to get pricing for.Example: n2-custom-1-1024-ext
operating_system
string
required
The operating system of the instance.Example: linux
provider
string
required
The cloud provider.Example: aws,gcp,azure,ovh,hetzner,digitalocean
region
string
required
The region where the resource will be deployed.Example: us-east1,ncyc1,eu-central
service
string
required
The cloud service name.Example: ComputeEngine,AmazonEC2,Droplet,AzureCompute,HetznerCompute,OVHPublicCloud,BaseCompute
usage_type
string
required
The type of usage.Example: SPOT_PREEMPTIBLE,ONDEMAND,RESERVED,ONDEMAND_CUSTOM,SPOT_PREEMPTIBLE_CUSTOM,RESERVED_CUSTOM,SOLE_TENANCY,CUSTOM,EXTENDED
vm
object
required
Virtual machine specifications.

Response

availability_zone
string
The availability zone of the resource.
cost_per_hour
number
The total cost per hour for the resource.Example: 0.073981
cpu_cores_cost_per_hour
number
The cost per hour for CPU cores.Example: 0.031611
instance_type
string
The type of instance.Example: N2
operating_system
string
The operating system of the instance.
provider
string
The cloud provider.Example: GCP
ram_gb_cost_per_hour
number
The cost per hour for RAM.Example: 0.004237
raw_pricing_data
object
Detailed pricing information from the cloud provider.
region
string
The region where the resource is deployed.Example: us-east-1
service
string
The cloud service name.Example: ComputeEngine
usage_type
string
The type of usage.Example: ONDEMAND