curl --request GET \
--url https://data-api.compute-index.com/v1/prices/as-of \
--header 'Authorization: Bearer <token>'import requests
url = "https://data-api.compute-index.com/v1/prices/as-of"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://data-api.compute-index.com/v1/prices/as-of', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://data-api.compute-index.com/v1/prices/as-of",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://data-api.compute-index.com/v1/prices/as-of"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://data-api.compute-index.com/v1/prices/as-of")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://data-api.compute-index.com/v1/prices/as-of")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"availability": "available",
"available_at": "2026-07-16T19:01:27.837300+00:00",
"base_product_key": "c66b9c50d8d9b2e41e0dfdf307c4799c8c6e3a1c55606586e1f7cbd70b0d1011",
"contract_details": "max_duration: 17.8 days",
"contract_term": null,
"contract_type": "ondemand",
"created_by": "ingest_incremental.py",
"extracted_at": "2026-07-16T19:01:27.837300+00:00",
"form_factor": "SXM",
"gpu_canonical_name": "nvidia-h100-sxm5-80gb",
"gpu_count": 2,
"gpu_manufacturer": "NVIDIA",
"gpu_memory_gb": 80,
"gpu_model": "H100",
"id": "53099890-d175-44f8-80b1-7876c38d095e",
"instance_type": "H100 SXM",
"instance_variant": "machine:59377, host:456754",
"interconnect": "NVLink",
"job_execution_id": null,
"last_seen_at": "2026-07-16T19:01:27.837300+00:00",
"metadata": {
"availability_unit": "gpu",
"available_units": 16,
"bundle_id": 1914300712,
"cpu_ghz": 3.1,
"cpu_name": "AMD EPYC 9554 64-Core Processor",
"driver_version": "550.163.01",
"flops_per_dollar": 30.860906598334406,
"gpu_ids": [
182525,
182526
],
"inet_down_mbps": 623.6,
"inet_up_mbps": 725.1,
"listing_id": 42557071,
"machine_id": 59377,
"max_duration_display": "17.8 days",
"max_duration_seconds": 1540738.4754431248,
"nvlink_bw_gbps": 478.1160888671875,
"pcie_bw_gbps": 36.8,
"pcie_gen": 5,
"performance_score": 187.5258564098057,
"port_count": 199,
"provider_id": 456754,
"public_ip": "66.189.182.26",
"reliability_score": 0.997798,
"rented_units": 36,
"storage_bw_mbps": 1468.1168334878566,
"storage_gb": 24.5,
"storage_type": "M.2 NVMe 2-Bay RAID Kit",
"total_units": 52,
"verification_status": "verified"
},
"os": "Linux",
"price_hash": "fa0cbdbc2c9aac004d841da4fda23f6c421feb27ab3b757b8539df1773cb186f",
"price_usd_per_gpu_hour": 1.734,
"product_key": "75999c133d285a6f4d029a228a77b386e14e27fe985ad6ccd561e9838f6aa000",
"ram_gb": 252,
"raw_price": 3.469,
"raw_price_unit": "USD/hour (total)",
"region": "us-east-1",
"source": "api",
"source_file": "vastai_pricing_20260716_190124_33587.json",
"updated_by": "ingest_incremental.py:phase5",
"valid_to": "2026-07-17T00:02:41.224361+00:00",
"vcpu": 256,
"vendor": "vastai",
"vendor_gpu_name": "H100 SXM",
"vendor_region": "Washington, US",
"vendor_sku": "42557071:h100 sxm:2gpu:ondemand"
},
{
"availability": "available",
"available_at": "2026-07-16T19:01:27.851627+00:00",
"base_product_key": "cd56cec7b3d1d8e24e69eecf06bc1744463da1a59141b9e6bcf52b0f169a920e",
"contract_details": "max_duration: 17.8 days",
"contract_term": null,
"contract_type": "ondemand",
"created_by": "ingest_incremental.py",
"extracted_at": "2026-07-16T19:01:27.851627+00:00",
"form_factor": "SXM",
"gpu_canonical_name": "nvidia-h100-sxm5-80gb",
"gpu_count": 1,
"gpu_manufacturer": "NVIDIA",
"gpu_memory_gb": 80,
"gpu_model": "H100",
"id": "a4dad384-2006-4b32-bb5d-4c02bdbbce9a",
"instance_type": "H100 SXM",
"instance_variant": "machine:139170, host:456754",
"interconnect": "NVLink",
"job_execution_id": null,
"last_seen_at": "2026-07-16T19:01:27.851627+00:00",
"metadata": {
"availability_unit": "gpu",
"available_units": 16,
"bundle_id": 1781148153,
"cpu_ghz": 3.800241,
"cpu_name": "AMD EPYC 9354 32-Core Processor",
"driver_version": "550.163.01",
"flops_per_dollar": 30.841149295774652,
"gpu_ids": [
202487
],
"inet_down_mbps": 691.6,
"inet_up_mbps": 764.1,
"listing_id": 44760325,
"machine_id": 139170,
"max_duration_display": "17.8 days",
"max_duration_seconds": 1540737.4754431248,
"nvlink_bw_gbps": 478.1160888671875,
"pcie_bw_gbps": 36.8,
"pcie_gen": 5,
"performance_score": 157.2484748289074,
"port_count": 99,
"provider_id": 456754,
"public_ip": "66.189.182.26",
"reliability_score": 0.980523,
"rented_units": 36,
"storage_bw_mbps": 885,
"storage_gb": 32.25,
"storage_type": "Micron_7450_MTFDKBA480TFR",
"total_units": 52,
"verification_status": "verified"
},
"os": "Linux",
"price_hash": "0a0b800d35565bac1b1f3a2206b6323c431b89142291fcbc70ba76ae35641c9c",
"price_usd_per_gpu_hour": 1.736,
"product_key": "902ec5f993acc691453e95787c9f6c8ac49758263330c68a56b158526f28585a",
"ram_gb": 126,
"raw_price": 1.736,
"raw_price_unit": "USD/hour (total)",
"region": "us-east-1",
"source": "api",
"source_file": "vastai_pricing_20260716_190124_33587.json",
"updated_by": "ingest_incremental.py:phase5",
"valid_to": "2026-07-17T00:02:41.224361+00:00",
"vcpu": 128,
"vendor": "vastai",
"vendor_gpu_name": "H100 SXM",
"vendor_region": "Washington, US",
"vendor_sku": "44760325:h100 sxm:1gpu:ondemand"
}
],
"filters": {
"as_of_date": "2026-07-16",
"base_product_key": null,
"contract_type": "ondemand",
"gpu_canonical_name": null,
"gpu_model": "H100",
"product_key": null,
"region": null,
"sort_by": "price_usd_per_gpu_hour",
"sort_order": "asc",
"vendor": null
},
"pagination": {
"has_next": true,
"has_previous": false,
"page": 1,
"page_size": 100,
"total_count": 1639,
"total_pages": 17
}
}Prices: As Of Date
Query prices that were active/valid at a point in time. A date-only value means END of that day (UTC) — the daily snapshot convention, matching the txn section’s as_of; a full timestamp means that exact instant. Answers reflect best current knowledge of the price book: reprocessed source files and vendor visibility changes can revise historical answers, and prices from a vendor that stops reporting remain valid until closed by the staleness sweep (typically up to ~7 days).
curl --request GET \
--url https://data-api.compute-index.com/v1/prices/as-of \
--header 'Authorization: Bearer <token>'import requests
url = "https://data-api.compute-index.com/v1/prices/as-of"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://data-api.compute-index.com/v1/prices/as-of', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://data-api.compute-index.com/v1/prices/as-of",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://data-api.compute-index.com/v1/prices/as-of"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://data-api.compute-index.com/v1/prices/as-of")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://data-api.compute-index.com/v1/prices/as-of")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"availability": "available",
"available_at": "2026-07-16T19:01:27.837300+00:00",
"base_product_key": "c66b9c50d8d9b2e41e0dfdf307c4799c8c6e3a1c55606586e1f7cbd70b0d1011",
"contract_details": "max_duration: 17.8 days",
"contract_term": null,
"contract_type": "ondemand",
"created_by": "ingest_incremental.py",
"extracted_at": "2026-07-16T19:01:27.837300+00:00",
"form_factor": "SXM",
"gpu_canonical_name": "nvidia-h100-sxm5-80gb",
"gpu_count": 2,
"gpu_manufacturer": "NVIDIA",
"gpu_memory_gb": 80,
"gpu_model": "H100",
"id": "53099890-d175-44f8-80b1-7876c38d095e",
"instance_type": "H100 SXM",
"instance_variant": "machine:59377, host:456754",
"interconnect": "NVLink",
"job_execution_id": null,
"last_seen_at": "2026-07-16T19:01:27.837300+00:00",
"metadata": {
"availability_unit": "gpu",
"available_units": 16,
"bundle_id": 1914300712,
"cpu_ghz": 3.1,
"cpu_name": "AMD EPYC 9554 64-Core Processor",
"driver_version": "550.163.01",
"flops_per_dollar": 30.860906598334406,
"gpu_ids": [
182525,
182526
],
"inet_down_mbps": 623.6,
"inet_up_mbps": 725.1,
"listing_id": 42557071,
"machine_id": 59377,
"max_duration_display": "17.8 days",
"max_duration_seconds": 1540738.4754431248,
"nvlink_bw_gbps": 478.1160888671875,
"pcie_bw_gbps": 36.8,
"pcie_gen": 5,
"performance_score": 187.5258564098057,
"port_count": 199,
"provider_id": 456754,
"public_ip": "66.189.182.26",
"reliability_score": 0.997798,
"rented_units": 36,
"storage_bw_mbps": 1468.1168334878566,
"storage_gb": 24.5,
"storage_type": "M.2 NVMe 2-Bay RAID Kit",
"total_units": 52,
"verification_status": "verified"
},
"os": "Linux",
"price_hash": "fa0cbdbc2c9aac004d841da4fda23f6c421feb27ab3b757b8539df1773cb186f",
"price_usd_per_gpu_hour": 1.734,
"product_key": "75999c133d285a6f4d029a228a77b386e14e27fe985ad6ccd561e9838f6aa000",
"ram_gb": 252,
"raw_price": 3.469,
"raw_price_unit": "USD/hour (total)",
"region": "us-east-1",
"source": "api",
"source_file": "vastai_pricing_20260716_190124_33587.json",
"updated_by": "ingest_incremental.py:phase5",
"valid_to": "2026-07-17T00:02:41.224361+00:00",
"vcpu": 256,
"vendor": "vastai",
"vendor_gpu_name": "H100 SXM",
"vendor_region": "Washington, US",
"vendor_sku": "42557071:h100 sxm:2gpu:ondemand"
},
{
"availability": "available",
"available_at": "2026-07-16T19:01:27.851627+00:00",
"base_product_key": "cd56cec7b3d1d8e24e69eecf06bc1744463da1a59141b9e6bcf52b0f169a920e",
"contract_details": "max_duration: 17.8 days",
"contract_term": null,
"contract_type": "ondemand",
"created_by": "ingest_incremental.py",
"extracted_at": "2026-07-16T19:01:27.851627+00:00",
"form_factor": "SXM",
"gpu_canonical_name": "nvidia-h100-sxm5-80gb",
"gpu_count": 1,
"gpu_manufacturer": "NVIDIA",
"gpu_memory_gb": 80,
"gpu_model": "H100",
"id": "a4dad384-2006-4b32-bb5d-4c02bdbbce9a",
"instance_type": "H100 SXM",
"instance_variant": "machine:139170, host:456754",
"interconnect": "NVLink",
"job_execution_id": null,
"last_seen_at": "2026-07-16T19:01:27.851627+00:00",
"metadata": {
"availability_unit": "gpu",
"available_units": 16,
"bundle_id": 1781148153,
"cpu_ghz": 3.800241,
"cpu_name": "AMD EPYC 9354 32-Core Processor",
"driver_version": "550.163.01",
"flops_per_dollar": 30.841149295774652,
"gpu_ids": [
202487
],
"inet_down_mbps": 691.6,
"inet_up_mbps": 764.1,
"listing_id": 44760325,
"machine_id": 139170,
"max_duration_display": "17.8 days",
"max_duration_seconds": 1540737.4754431248,
"nvlink_bw_gbps": 478.1160888671875,
"pcie_bw_gbps": 36.8,
"pcie_gen": 5,
"performance_score": 157.2484748289074,
"port_count": 99,
"provider_id": 456754,
"public_ip": "66.189.182.26",
"reliability_score": 0.980523,
"rented_units": 36,
"storage_bw_mbps": 885,
"storage_gb": 32.25,
"storage_type": "Micron_7450_MTFDKBA480TFR",
"total_units": 52,
"verification_status": "verified"
},
"os": "Linux",
"price_hash": "0a0b800d35565bac1b1f3a2206b6323c431b89142291fcbc70ba76ae35641c9c",
"price_usd_per_gpu_hour": 1.736,
"product_key": "902ec5f993acc691453e95787c9f6c8ac49758263330c68a56b158526f28585a",
"ram_gb": 126,
"raw_price": 1.736,
"raw_price_unit": "USD/hour (total)",
"region": "us-east-1",
"source": "api",
"source_file": "vastai_pricing_20260716_190124_33587.json",
"updated_by": "ingest_incremental.py:phase5",
"valid_to": "2026-07-17T00:02:41.224361+00:00",
"vcpu": 128,
"vendor": "vastai",
"vendor_gpu_name": "H100 SXM",
"vendor_region": "Washington, US",
"vendor_sku": "44760325:h100 sxm:1gpu:ondemand"
}
],
"filters": {
"as_of_date": "2026-07-16",
"base_product_key": null,
"contract_type": "ondemand",
"gpu_canonical_name": null,
"gpu_model": "H100",
"product_key": null,
"region": null,
"sort_by": "price_usd_per_gpu_hour",
"sort_order": "asc",
"vendor": null
},
"pagination": {
"has_next": true,
"has_previous": false,
"page": 1,
"page_size": 100,
"total_count": 1639,
"total_pages": 17
}
}as_of_date: a date-only value means the end of that day (UTC) (the daily-snapshot convention, matching the index sections’ as_of); a full timestamp means that exact instant. Narrow the result with any combination of vendor, gpu_model, region, and contract_type, and page through with page / page_size.
prices-history scope, granted separately from prices — a token can have current access without history. Contact david@compute-index.com to request access.page / page_size (max 1000).Example
# All H100 prices active on Oct 17 2024
curl -H "Authorization: Bearer $TOKEN" \
"https://data-api.compute-index.com/v1/prices/as-of?as_of_date=2024-10-17&gpu_model=H100"
# Cheapest AWS on-demand in us-east-1 as of a date
curl -H "Authorization: Bearer $TOKEN" \
"https://data-api.compute-index.com/v1/prices/as-of?as_of_date=2024-10-17&vendor=aws®ion=us-east-1&contract_type=ondemand&sort_by=price_usd_per_gpu_hour&sort_order=asc"
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Target date (ISO format). Date-only = end of that day (UTC); full timestamp = exact instant. Returns records where available_at <= as_of AND (valid_to IS NULL OR valid_to > as_of). Example: 2024-10-17 or 2024-10-17T12:00:00
Page number (starts at 1)
x >= 1Items per page (max 1000)
1 <= x <= 1000Filter by vendor (exact match). Supports comma-separated list (max 20). Example: aws,gcp,azure
Filter by GPU model (partial match). Supports comma-separated list (max 5). Example: H100,A100,L40S
Filter by canonical GPU name (exact match). Supports comma-separated list (max 20). Example: nvidia-h100-sxm-80gb
Filter by region (exact match). Supports comma-separated list (max 20). Example: us-east-1,eu-west-1
Filter by contract type. Supports comma-separated list (max 20). Example: ondemand,spot,reserved
Specific product snapshot (includes timestamp and price)
Product identity (all historical snapshots of same product)
Sort field
Sort order (asc or desc)