Reference
Limits
Run slots, timeouts, budget rules, rate limits and page sizes, with the error each one returns.
Values marked as server settings are the defaults; a self-hosted server can change them with the environment variable shown.
Active runs#
A run is active while its status is accepted, launching, running or cancel_requested. Benchmark runs and job runs both count, simulated ones included.
| Limit | Default | Setting | When reached |
|---|---|---|---|
| Active runs per account | 2 | GPU_ROUTER_MAX_ACTIVE_RUNS | 409 RUN_LIMIT_REACHED |
| Active runs across the platform | 200 | GPU_ROUTER_MAX_PLATFORM_ACTIVE_RUNS | 503 PLATFORM_RUN_LIMIT_REACHED, retryable |
- A benchmark launches the first run on every chosen GPU at once, so all of them must fit. Repeats launch one at a time as each run ends, so the count never grows.
- A job needs 2 free slots to benchmark and tests at most as many GPUs as there are free slots. With the default of 2, a job benchmarks 2 GPUs.
- A job whose full run finds no free slot waits in
choosingand launches once one frees up. - Demo accounts do not count toward the platform limit.
Timeouts#
| What | Limit |
|---|---|
job_spec.timeout_seconds | 1 to 21600 (6 hours), and at most the server's GPU_ROUTER_MAX_TIMEOUT_SECONDS, default 21600. Above it: 422 VALIDATION_ERROR. |
Benchmark run (max_seconds) | 30 to 3600 seconds per run, and at most the server limit. |
| Benchmark run inside a job | timeout_seconds clamped to 30 to 300 seconds. |
| Full run inside a job | timeout_seconds, cut to what the remaining budget buys. Under 30 seconds: JOB_OVER_BUDGET. |
| Launch call | 300 seconds. A launch that does not answer in time ends lost; check the Modal dashboard for a sandbox. Inside a job, the full run then fails without a fallback, since that sandbox may still be running. |
| Status polls | Every 15 seconds by default (GPU_ROUTER_POLL_SECONDS). After 5 non-transient poll failures in a row (GPU_ROUTER_POLL_RETRIES) the run is lost. |
MCP wait_for_job | At most 50 seconds per call; call again to keep waiting. |
| CLI request | 30 seconds per HTTP request. |
| Webhook send | 10 seconds per attempt. |
Budget rules#
| Rule | Error |
|---|---|
budget_usd must be above 0. | 422 VALIDATION_ERROR |
A job's benchmark cap must fit within half of budget_usd. GPUs are dropped down to 2 to fit first. | 409 JOB_OVER_BUDGET, nothing stored |
| The full run's projected cost must fit what is left of the budget. | Job failed, budget_reached: true |
| The remaining budget must buy at least 30 seconds on the winner. | Job failed, budget_reached: true |
| A fallback after a launch that failed to start skips GPUs whose projected cost is above what is left. If none is left, the job fails. | Job failed, budget_reached: true |
A benchmark start needs max_cost_usd at least the quoted cap_usd. | 409 BENCHMARK_OVER_CAP |
A benchmark start needs confirm: true. | 400 CONFIRMATION_REQUIRED |
A benchmark's cap is each GPU's rate times max_seconds times runs_per_gpu, rounded up to a microdollar, summed over GPUs. Budgets and caps cover GPU time only; Modal also bills CPU and memory.
Benchmark settings#
| Field | Range | Default |
|---|---|---|
gpus | 2 or 3 distinct candidates of the route | |
runs_per_gpu | 1 to 5 | 3 (2 inside a job) |
max_steps | 1 or more | 50 |
loss_tolerance_pct | above 0, up to 100 | off |
max_benchmark_gpus (jobs) | 2 or 3 | 3 |
Job spec limits#
| Field | Limit |
|---|---|
gpu_count | 1 |
cpu_cores | above 0, up to 32 |
memory_gb | above 0, up to 256 |
min_vram_gb | 1 or more |
env names | Match ^[A-Za-z_][A-Za-z0-9_]*$; values are strings without NUL |
inputs[].url | https, up to 2083 characters |
output_dir, inputs[].mount_path | Absolute paths below the root, no .. |
Rate limits#
Mutating requests (POST, PUT, PATCH, DELETE) are limited to 60 per minute per account (GPU_ROUTER_RATE_PER_MINUTE). The limit refills continuously, so a burst of 60 is allowed, then about one per second. Reads are not limited.
Signed-out calls to POST /v1/routes/preview and the sign-in steps share the same limit per IP address.
Over the limit, the answer is 429 RATE_LIMITED with retryable: true and a Retry-After header in whole seconds. Nothing was changed.
{"error": {"code": "RATE_LIMITED", "message": "Too many requests. Try again in 1 s.", "request_id": "...", "retryable": true, "details": []}}Pagination#
List endpoints for jobs, routes and runs take limit (1 to 100, default 20) and offset (0 or more), and return {items, total, limit, offset}, newest first. GET /v1/measurements and GET /v1/webhooks/{id}/deliveries take limit only, 1 to 100, default 20.
Account limits#
| Limit | Value | When reached |
|---|---|---|
| Webhook endpoints | 5 per account | 409 WEBHOOK_LIMIT_REACHED |
| Webhook retry window | 24 hours after the event was queued | Delivery failed |
| Provider connections | One per provider | 409 PROVIDER_CONNECTION_EXISTS |
| Route validity | 30 days after the selected rate was checked | 409 ROUTE_EXPIRED |
| API key name | 1 to 100 characters | 422 VALIDATION_ERROR |
Demo accounts#
- 5 demo starts per hour from one address; 500 demo accounts at a time.
- Deleted with all their data 24 hours after they start.
- Sample jobs only: their own image answers
403 DEMO_ACCOUNT_LIMITED. - At most 5 API keys.
- Webhook deliveries are simulated and never sent.