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.

LimitDefaultSettingWhen reached
Active runs per account2GPU_ROUTER_MAX_ACTIVE_RUNS409 RUN_LIMIT_REACHED
Active runs across the platform200GPU_ROUTER_MAX_PLATFORM_ACTIVE_RUNS503 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 choosing and launches once one frees up.
  • Demo accounts do not count toward the platform limit.

Timeouts#

WhatLimit
job_spec.timeout_seconds1 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 jobtimeout_seconds clamped to 30 to 300 seconds.
Full run inside a jobtimeout_seconds, cut to what the remaining budget buys. Under 30 seconds: JOB_OVER_BUDGET.
Launch call300 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 pollsEvery 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_jobAt most 50 seconds per call; call again to keep waiting.
CLI request30 seconds per HTTP request.
Webhook send10 seconds per attempt.

Budget rules#

RuleError
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#

FieldRangeDefault
gpus2 or 3 distinct candidates of the route
runs_per_gpu1 to 53 (2 inside a job)
max_steps1 or more50
loss_tolerance_pctabove 0, up to 100off
max_benchmark_gpus (jobs)2 or 33

Job spec limits#

FieldLimit
gpu_count1
cpu_coresabove 0, up to 32
memory_gbabove 0, up to 256
min_vram_gb1 or more
env namesMatch ^[A-Za-z_][A-Za-z0-9_]*$; values are strings without NUL
inputs[].urlhttps, up to 2083 characters
output_dir, inputs[].mount_pathAbsolute 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#

LimitValueWhen reached
Webhook endpoints5 per account409 WEBHOOK_LIMIT_REACHED
Webhook retry window24 hours after the event was queuedDelivery failed
Provider connectionsOne per provider409 PROVIDER_CONNECTION_EXISTS
Route validity30 days after the selected rate was checked409 ROUTE_EXPIRED
API key name1 to 100 characters422 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.

Next steps#