POST/api/quote
Prices one job on every provider. Returns the cheapest fit as choice, the next best offers as ranked, and provider_errors for any provider that did not answer.
| Field | Type | Notes |
|---|---|---|
| vcpus | integer | Required. At least 1. |
| mem_gb | number | Required. RAM in GB. |
| gpu_type | string | Optional: "RTX 4090", "L40S", "A100", "H100" or "H200". Leave out for CPU jobs. |
| gpu_count | integer | Needed when gpu_type is set. At least 1. |
| hours | number | Expected run time. Default 1. |
| max_price_hr | number | Optional cap in USD per hour. |
| regions | array | Optional: "us", "eu" or both. Leave out for any region. |
| spot_ok | boolean | The job can be interrupted and re-run. Default true. |
| trust | string | "any" or "datacenter" (no peer hosts). Default "any". |
{
"ok": true,
"choice": {
"provider": "aws", "sku": "c7i.4xlarge (spot)",
"region": "eu-west-2", "geo": "eu", "price_hr": 0.193,
"interruptible": true, "trust": "datacenter", "source": "live-api",
"job_cost_usd": 0.39, "wall_hours": 2.0
},
"ranked": [ ...the best offers in order, same fields... ],
"provider_errors": {},
"offers_seen": 120,
"offers_fit": 14
}
Example values. A spec that fails validation returns HTTP 400 with {"ok": false, "errors": [...]}. Too many requests return HTTP 429 with {"error": "rate limited"}.