spillway
Using the API

How routing works

Cheapest healthy seller first, with failover, discount floors and trust modes.

Each request goes to the cheapest offer for its model that is healthy and matches your filters. If it fails, the next one takes over.

Requests flow to the cheapest healthy seller.

Cheapest healthy first

  • Price order. Offers are ranked by their price for your request.
  • Failover. If an offer fails before sending anything, the next cheapest is tried, up to 4 attempts. You only pay for the attempt that succeeds.
  • Health. Offers that fail are paused and re-tested automatically, so they drop out of the order until they recover.

Your controls

  • Minimum discount. X-Min-Discount: 70 only routes to offers at least 70% below list. A key can carry its own floor; the stricter one applies.
  • Trust mode. trusted (default) uses known first-party provider hosts and seller-run endpoints. all adds every other healthy offer. Set it for your account in the dashboard.

Cold starts

Some sellers run serverless GPUs that sleep when idle. The first request after a quiet period can take a few minutes while the model loads. spillway waits for it rather than failing, and later requests are fast.