---
title: "Price a volume"
method: POST
path: "/v1/pricing/disks"
tags: ["pricing"]
---

# Price a volume

`POST /v1/pricing/disks`

## Request

- Base URL: `https://pricing.baselinehq.cloud`
- URL: `https://pricing.baselinehq.cloud/v1/pricing/disks`
- Auth: one of:
  - API key in header `X-API-Key`
  - API key in header `Authorization`
- TypeScript: <https://skmtc.dev/baselinehq/apis/costgraph-pricing-api/docs/v1/pricing/disks/post.ts> (a function with typed inputs; its response is checked against the schema)

Resolve the rate CostGraph would bill for a block volume of the given type and capacity, in the given region.
Prices you have published for the volume's provider are preferred over the public catalogue.

## Request body

- Disk
  - `availability_zone` string
  - `capacity_gb` number
  - `fallback_to_base_pricing` boolean
  - `id` string
  - `iops` number
  - `provider` 'GCP' | 'AWS' | 'DigitalOcean' | 'Azure' | 'Hetzner' | 'OVHCloud' | 'PlanetScale' | 'STACKIT' | 'Linode' | 'Base' | 'Akash' | 'Alibaba' | 'Baseten' | 'Beam' | 'Cerebrium' | 'CIRunners' | 'Civo' | 'Clore' | 'CoreWeave' | 'Crusoe' | 'CUDO' | 'DataCrunch' | 'DeepInfra' | 'Denvr' | 'E2ENetworks' | 'Exoscale' | 'Fal' | 'HotAisle' | 'Hyperbolic' | 'Hyperstack' | 'IBM' | 'Lambda' | 'Latitude' | 'MassedCompute' | 'Modal' | 'Nebius' | 'Novita' | 'Oblivus' | 'OCI' | 'OpenTelekom' | 'PrimeIntellect' | 'Replicate' | 'RunPod' | 'Salad' | 'Scaleway' | 'Sesterce' | 'Shadeform' | 'ThunderCompute' | 'UpCloud' | 'Vast' | 'Vultr'
  - `region` string
  - `service` 'ComputeEngine' | 'AmazonEC2' | 'Droplet' | 'AzureCompute' | 'AzureManagedDisks' | 'HetznerCompute' | 'OVHPublicCloud' | 'BaseCompute' | 'BaseDisks' | 'AmazonEBS' | 'AmazonRDS' | 'AuroraDSQL' | 'CloudSQL' | 'AlloyDB' | 'CloudSpanner' | 'AzureDatabaseForPostgreSQL' | 'AzureDatabaseForMySQL' | 'AzureSQLDatabase' | 'AzureSQLManagedInstance' | 'PlanetScale' | 'ComputeEnginePersistentDisk' | 'STACKITCompute' | 'STACKITBlockStorage' | 'STACKITDatabase' | 'AkamaiLinode' | 'AkamaiBlockStorage' | 'AkamaiDatabase' | 'AkashCompute' | 'AlibabaCompute' | 'AlibabaBlockStorage' | 'BasetenCompute' | 'BeamCompute' | 'CerebriumCompute' | 'CivoCompute' | 'CivoBlockStorage' | 'CloreCompute' | 'CoreWeaveCompute' | 'CrusoeCompute' | 'CUDOCompute' | 'DataCrunchCompute' | 'DeepInfraCompute' | 'DenvrCompute' | 'E2ENetworksCompute' | 'ExoscaleCompute' | 'ExoscaleBlockStorage' | 'FalCompute' | 'HotAisleCompute' | 'HyperbolicCompute' | 'HyperstackCompute' | 'IBMCompute' | 'IBMBlockStorage' | 'LambdaCompute' | 'LatitudeCompute' | 'MassedComputeCompute' | 'ModalCompute' | 'NebiusCompute' | 'NovitaCompute' | 'OblivusCompute' | 'OCICompute' | 'OCIBlockStorage' | 'OpenTelekomCompute' | 'PrimeIntellectCompute' | 'ReplicateCompute' | 'RunPodCompute' | 'SaladCompute' | 'ScalewayCompute' | 'ScalewayBlockStorage' | 'SesterceCompute' | 'ShadeformCompute' | 'ThunderComputeCompute' | 'UpCloudCompute' | 'UpCloudBlockStorage' | 'VastCompute' | 'VultrCompute' | 'VultrBlockStorage'
  - `throughput_mbps` number
  - `type` string
  - `usage_type` 'SPOT_PREEMPTIBLE' | 'ONDEMAND' | 'RESERVED' | 'ONDEMAND_CUSTOM' | 'SPOT_PREEMPTIBLE_CUSTOM' | 'RESERVED_CUSTOM' | 'SOLE_TENANCY' | 'CUSTOM' | 'EXTENDED'

## Response `200`

The resolved price

- DiskPrice
  - `availability_zone` string
  - `cost_per_gb_hour` number
  - `cost_per_iops_hour` number
  - `cost_per_throughput_mbps_hour` number
  - `created_at` string
  - `currency` string: Currency the provider published this price in. Cost columns are always normalized USD.
  - `id` string
  - `max_capacity_gb` number: Provisioning upper bound the disk type supports at this price (validation range), not an actual disk size.
  - `max_iops` number
  - `max_throughput_mbps` number
  - `min_capacity_gb` number: Provisioning lower bound the disk type supports at this price (validation range), not an actual disk size.
  - `min_iops` number
  - `min_throughput_mbps` number
  - `native_cost_per_gb_hour` number
  - `native_cost_per_iops_hour` number
  - `native_cost_per_throughput_mbps_hour` number
  - `period_billing_hours` number
  - `provider` string
  - `raw_pricing_data` object
  - `region` string
  - `service` string
  - `tags` object
  - `type` string
  - `updated_at` string
  - `usage_type` string

## Other responses

- `400`: Invalid request body
- `401`: Unauthenticated
- `404`: No price matches the volume
- `422`: Validation failed
- `500`: Internal server error

## Changes

- **2026-10-05** `506d14bb78ca`: 1 info
  - added the new `CIRunners` enum value to the request property `provider`
- **2026-10-05** `a60168add03d`: 5 info
  - added the optional property `affected` to the response with the `400` status
  - added the optional property `affected` to the response with the `401` status
  - added the optional property `affected` to the response with the `404` status
  - added the optional property `affected` to the response with the `422` status
  - …1 more
- **2026-10-05** `baaed9359752`: 1 breaking, 1 info
  - removed the enum value `Akamai` of the request property `provider`
  - added the new `Linode` enum value to the request property `provider`
- **2026-10-04** `73c38af41209`: 16 info
  - added the new `Alibaba` enum value to the request property `provider`
  - added the new `AlibabaBlockStorage` enum value to the request property `service`
  - added the new `AlibabaCompute` enum value to the request property `service`
  - added the new `Civo` enum value to the request property `provider`
  - …12 more
- **2026-09-30** `71a088807969`: 30 info
  - added the new `Baseten` enum value to the request property `provider`
  - added the new `BasetenCompute` enum value to the request property `service`
  - added the new `Beam` enum value to the request property `provider`
  - added the new `BeamCompute` enum value to the request property `service`
  - …26 more

[Operation history](https://skmtc.dev/baselinehq/apis/costgraph-pricing-api/changes/v1/pricing/disks/post.md)

---

[API](https://skmtc.dev/baselinehq/apis/costgraph-pricing-api.md) - [All operations](https://skmtc.dev/baselinehq/apis/costgraph-pricing-api/llms.txt) - [OpenAPI document](https://skmtc.dev/baselinehq/apis/costgraph-pricing-api/revisions/506d14bb78ca?raw)
