Skip to main content
GET
https://api.galadriel.com
/
v1
/
prices
/
estimate
curl "https://api.galadriel.com/v1/prices/estimate?gpu_type=h100&gpu_count=16&zone=us-west-1&duration_hours=24" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "gpu_type": "h100",
  "gpu_count": 16,
  "zone": "us-west-1",
  "duration_hours": 24,
  "estimated_price": 1.38,
  "best_ask": 1.40,
  "worst_fill_price": 1.45,
  "total_available": 48,
  "sufficient_liquidity": true,
  "cost_breakdown": {
    "compute_cost": 530.88,
    "platform_fee": 53.09,
    "total_cost": 583.97
  },
  "fills": [
    {
      "price": 1.40,
      "gpus": 16
    }
  ],
  "timestamp": "2025-11-11T14:00:00Z"
}

Query Parameters

gpu_type
string
required
GPU type: h100, h200, b200, or b300
gpu_count
integer
required
Number of GPUs (must be multiple of 8)
zone
string
required
Availability zone: us-west-1, us-east-1, or eu-west-1
duration_hours
integer
default:"24"
Lease duration in hours for cost calculation

Response

estimated_price
number
Weighted average price per GPU/hour
best_ask
number
Current best ask price
worst_fill_price
number
Highest price you’d pay if order filled now
total_cost
number
Estimated total cost including platform fee
sufficient_liquidity
boolean
Whether there’s enough liquidity to fill the order
curl "https://api.galadriel.com/v1/prices/estimate?gpu_type=h100&gpu_count=16&zone=us-west-1&duration_hours=24" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "gpu_type": "h100",
  "gpu_count": 16,
  "zone": "us-west-1",
  "duration_hours": 24,
  "estimated_price": 1.38,
  "best_ask": 1.40,
  "worst_fill_price": 1.45,
  "total_available": 48,
  "sufficient_liquidity": true,
  "cost_breakdown": {
    "compute_cost": 530.88,
    "platform_fee": 53.09,
    "total_cost": 583.97
  },
  "fills": [
    {
      "price": 1.40,
      "gpus": 16
    }
  ],
  "timestamp": "2025-11-11T14:00:00Z"
}

Using Price Estimates

Use price estimates to decide between market and limit orders:
estimate = response.json()

if not estimate['sufficient_liquidity']:
    print("Not enough liquidity. Use limit order instead.")
elif estimate['estimated_price'] > 1.50:
    print("Price too high. Wait or use limit order.")
else:
    print(f"Good price. Proceed with market order at ~${estimate['estimated_price']}/hr")