gpu-router

The cheapest way to run your GPU job across every cloud.

We compare GPU types and cloud providers using measured workload performance to find the lowest cost to finish your job.

Hourly price lies. A $0.5904/h T4 can cost more per token than a $1.1016/h A10 that’s 2.7× faster. gpu-router runs short capped benchmarks of your job and picks the lowest verified cost per unit of work.

ExampleData

Sample LoRA, measured: T4 $0.3540985 per 1k steps vs L4 $0.38341 vs A10 $0.9009545

Describe the job: a container image, a command and a budget. Benchmark it on 2 or 3 candidate GPUs. Run it on the cheapest per unit of work, in your own Modal account, which bills you directly.

Generates fixed-length completions for 256 prompts with vLLM and reports tokens per second.

jobs1 of 6

Paste your job spec or pick the Batch LLM inference sample

$
GB
More options model Qwen/Qwen2.5-0.5B-Instruct, fp16, verifier set

Workload

inference may use spot

Verifier

Picked A10 PCIe 24 GB on Modal: the benchmark winner at $ 0.0313575 per 1M tokens. One full run: measured on A10 (runs ea26f12c, 460bb782).

Cost on A10 PCIe 24 GB$ 0.035198/runmeasured on A10 (runs ea26f12c, 460bb782)
Modal rate$ 1.1016/GPU-hr

Candidates

Measured cost of one run on each compatible GPU, lower is better

  1. Modal · T4 PCIe 16 GB$ 0.032946 /job lowest cost
  2. Modal · A10 PCIe 24 GB$ 0.035198 /job selected
  3. Modal · L4 PCIe 24 GB$ 0.049655 /job
  4. Modal · L40S PCIe 48 GB$ 0.089781 /job
  • Lowest cost
  • Other offers

Source: Modal · rate × runtime · 2026/11/24 · 4 of 4 candidates have a job cost

Job cost from measured runs

Cost of one run in one tier, lower is better

  1. Google Cloud · T4 PCIe 16 GB$ 0.011663 /job stale lowest cost
  2. Google Cloud · L4 PCIe 24 GB$ 0.01716 /job stale
  3. Google Cloud · L4 PCIe 24 GB$ 0.023164 /job stale
  4. Google Cloud · L4 PCIe 24 GB$ 0.023228 /job stale
  5. Google Cloud · L4 PCIe 24 GB$ 0.025029 /job stale
  • Lowest cost
  • Other offers

Source: Google Cloud · rate × runtime · 2026/11/24 · 24 of 24 spot offers have a job cost · 5 of 24 shown

All 64 offers

Vast.ai live prices: unreachable

Benchmark

Run the same fixed work, seed, and image on 2 or 3 candidate GPUs, repeated, then rank them by median cost per unit of work.

Capped at 3 probes

GPUCost per unitBasisRate
1. A10 PCIe 24 GB$ 0.0313575 per 1M tokens (steady state, excluding 161 s startup)measured on A10 (runs 5488240d, 2883ee47)$ 1.1016/GPU-hr
2. L4 PCIe 24 GB$ 0.033526 per 1M tokens (steady state, excluding 168 s startup)measured on L4 (runs e855c43a, 8cb22b7c, 0fee0e0a, 37c98735)$ 0.7992/GPU-hr
3. L40S PCIe 48 GB$ 0.03691 per 1M tokens (steady state, excluding 167 s startup)measured on L40S (runs de239800, 9a80543a)$ 1.9512/GPU-hr
  1. GPUA10 PCIe 24 GB on Modal
  2. StatusSucceeded
  3. Duration1 m 47 s · measured
  4. Cost$ 0.032698 · measured
  5. Exit code0
  6. Verificationpassed
  7. Outputsresults.jsonl, metrics.json
  8. ExecutionModal job run 460bb7829e794f8a9cffa6837d3d4bd5, finished 2026-10-14, verified

Log tail

last lines from the sandbox
(MainProcess pid=2) INFO 10-14 07:32:26 [core_client.py:767] [shutdown] MPClient: cleaning up background resources
(MainProcess pid=2) INFO 10-14 07:32:26 [core_client.py:769] [shutdown] MPClient: complete

Verification

passed · verifier v1 · run 460bb782 measured
  1. expected output filesall 1 expected files are presentPassed
  2. metrics filemetrics.json parsed as a JSON object with 7 keysPassed
  3. metric must decreasefinal_pending 0 decreased from initial_pending 256Passed

Measurement

Duration1 m 47 s measured
Cost on A10 PCIe 24 GB$ 0.032698 /run measured
Cost per unit$ 0.026195 per 1M tokens (steady state, excluding 98 s startup) measured

Use sample