API Documentation
Access GPU rental pricing data programmatically. No authentication required.
GET
/api/compare
Latest snapshot per GPU per provider. Powers the main comparison table.
Response
{
"providers": {
"vast.ai": { "name": "Vast.ai", "color": "#00d4aa" },
"aws": { "name": "AWS", "color": "#ff9900" },
...
},
"gpus": {
"H100 SXM": {
"vast.ai": {
"on-demand": {
"min": 1.85, "median": 2.10, "mean": 2.25, "max": 3.50,
"num_offers": 42, "fetched_at": "2026-03-15T06:00:00"
},
"spot": { ... }
},
"aws": { ... }
}
},
"gpu_specs": {
"H100 SXM": { "vram_gb": 80, "vram_type": "HBM3", "generation": "Hopper", "tier": "Flagship" }
}
}
GET
/api/current
Current prices, optionally filtered by provider.
provider
string, optional
Filter by provider key (e.g., aws, vast.ai, gcp)
Example
GET /api/current?provider=aws
Response
[
{
"gpu_name": "H100 SXM",
"provider": "aws",
"pricing_type": "on-demand",
"num_offers": 1,
"min_dph_per_gpu": 3.25,
"median_dph_per_gpu": 3.25,
"mean_dph_per_gpu": 3.25,
"max_dph_per_gpu": 3.25,
"fetched_at": "2026-03-15T06:00:00"
},
...
]
GET
/api/history/{gpu_name}
Historical price data for a specific GPU across all providers.
gpu_name
path, required
GPU name (e.g., H100 SXM, RTX 4090)
provider
query, optional
Filter to a single provider
Example
GET /api/history/H100%20SXM?provider=vast.ai
Response
{
"gpu_name": "H100 SXM",
"history": [
{
"fetched_at": "2024-01-15T06:00:00",
"num_offers": 38,
"min": 1.90, "median": 2.15, "mean": 2.30, "max": 3.80,
"provider": "vast.ai",
"pricing_type": "on-demand"
},
...
]
}
GET
/api/history_all
All historical pricing data, keyed by gpu_name|provider|pricing_type.
Response
{
"H100 SXM|vast.ai|on-demand": [
{ "fetched_at": "2024-01-15", "median": 2.15, "min": 1.90, "num_offers": 38, ... },
...
],
"H100 SXM|aws|on-demand": [ ... ],
...
}
GET
/api/providers
Provider metadata, last snapshot freshness, and latest collector run status.
Response
{
"vast.ai": {
"name": "Vast.ai",
"color": "#00d4aa",
"url": "https://vast.ai",
"last_fetched": "2026-03-15T06:00:00",
"snapshots": 1284,
"last_run": {
"started_at": "2026-03-15T06:00:00",
"completed_at": "2026-03-15T06:00:04",
"status": "ok",
"prices": 128,
"gpu_types": 12,
"message": null
}
},
...
}
GET
/api/offers/{gpu_name}
Individual offer listings for a GPU. Currently only available for Vast.ai.
gpu_name
path, required
GPU name (e.g., H100 SXM)
Response
{
"gpu_name": "H100 SXM",
"offers": [
{
"gpu_name": "H100 SXM",
"num_gpus": 8,
"gpu_ram_gb": 80.0,
"price_per_gpu_hr": 1.85,
"price_total_hr": 14.80,
"cpu": "AMD EPYC 9454",
"cpu_cores": 48.0,
"ram_gb": 512.0,
"disk_gb": 2000,
"location": "US",
"reliability": 0.9980,
"tflops": 3958.8
},
...
]
}
Supported Providers
| Provider Key | Name | Auth Required |
|---|---|---|
vast.ai | Vast.ai | No |
aws | Amazon Web Services | No |
azure | Microsoft Azure | No |
gcp | Google Cloud Platform | No (API key on server) |
lambda | Lambda Labs | No (API key on server) |
runpod | RunPod | No (API key on server) |
vultr | Vultr | No |