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.

GET/v1/routes/{id}/benchmark/quoteAPI key

Authorization

Send Authorization: Bearer gr_... with a key from the Developer access page. The browser session cookie gpu_router_session also works.

Path parameters

idstringrequired

Query parameters

gpusenum<string>[]required

Available options: T4 L4 A10 L40S A100-40GB A100-80GB RTX-PRO-6000 H100 H200 B200 B300

minItems: 2

maxItems: 3

max_secondsintegerrequired

minimum: 30

maximum: 3600

runs_per_gpuintegerdefault: 3

minimum: 1

maximum: 5

Responses

200application/json

Successful Response

Show response attributes
max_secondsintegerrequired
runs_per_gpuintegerrequired
probesobject[]required
Show child attributes
gpuenum<string>required

Available options: T4 L4 A10 L40S A100-40GB A100-80GB RTX-PRO-6000 H100 H200 B200 B300

providerenum<string>required

Available options: modal lambda

usd_per_gpu_hourstringrequired

pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$

gpu_countintegerrequired
cap_usdstringrequired

One run: usd_per_gpu_hour x gpu_count x max_seconds / 3600, rounded up to a microdollar.

pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$

runsintegerrequired

Runs on this GPU.

total_cap_usdstringrequired

cap_usd x runs.

pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$

cap_usdstringrequired

Hard cap: the most the whole benchmark can bill for GPU time, the sum of each GPU's total_cap_usd.

pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$

simulatedbooleanrequired

True for a simulated sample or demo route: the benchmark is simulated and nothing is launched or billed.

401application/json

UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.

UNAUTHENTICATED
404application/json

ROUTE_NOT_FOUND: no route with this id belongs to the signed-in user.

ROUTE_NOT_FOUND
500application/json

Unexpected failure: INTERNAL_ERROR.

INTERNAL_ERROR
502application/json

AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).

AUTH_PROVIDER_REJECTED
503application/json

AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).

AUTH_NOT_CONFIGUREDAUTH_PROVIDER_UNAVAILABLE

MCP 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.