Benchmarks
Show quote
The hard cap before confirming a benchmark: worst-case cost per GPU and in total for the chosen GPUs, time limit, and repeats. Free.
Authorization
Send Authorization: Bearer gr_... with a key from the Developer access page. The browser session cookie gpu_router_session also works.
Path parameters
idstringrequiredQuery parameters
gpusenum<string>[]requiredAvailable options: T4 L4 A10 L40S A100-40GB A100-80GB RTX-PRO-6000 H100 H200 B200 B300
minItems: 2
maxItems: 3
max_secondsintegerrequiredminimum: 30
maximum: 3600
runs_per_gpuintegerdefault: 3minimum: 1
maximum: 5
Responses
200application/jsonSuccessful Response
Show response attributes
max_secondsintegerrequiredruns_per_gpuintegerrequiredprobesobject[]requiredShow child attributes
gpuenum<string>requiredAvailable options: T4 L4 A10 L40S A100-40GB A100-80GB RTX-PRO-6000 H100 H200 B200 B300
providerenum<string>requiredAvailable options: modal lambda
usd_per_gpu_hourstringrequiredpattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
gpu_countintegerrequiredcap_usdstringrequiredOne run: usd_per_gpu_hour x gpu_count x max_seconds / 3600, rounded up to a microdollar.
pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
runsintegerrequiredRuns on this GPU.
total_cap_usdstringrequiredcap_usd x runs.
pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
cap_usdstringrequiredHard cap: the most the whole benchmark can bill for GPU time, the sum of each GPU's total_cap_usd.
pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
simulatedbooleanrequiredTrue for a simulated sample or demo route: the benchmark is simulated and nothing is launched or billed.
401application/jsonUNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.
UNAUTHENTICATED404application/jsonROUTE_NOT_FOUND: no route with this id belongs to the signed-in user.
ROUTE_NOT_FOUND500application/jsonUnexpected failure: INTERNAL_ERROR.
INTERNAL_ERROR502application/jsonAUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).
AUTH_PROVIDER_REJECTED503application/jsonAUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).
AUTH_NOT_CONFIGUREDAUTH_PROVIDER_UNAVAILABLEMCP tool
quote_benchmark: Quote the hard cap of benchmarking a route on 2 or 3 of its candidate GPUs before starting it: per-GPU caps (rate times max_seconds times runs_per_gpu) and the total cap_usd that start_benchmark must confirm. max_seconds is each probe run's sandbox timeout (30 to 3600), runs_per_gpu the repeats on each GPU (1 to 5). Free.