Watch Sieve cut an AI bill, request by request

This page runs the same optimization engine as the prototype, live in your browser. Pick a workload, switch the levers on and off, and inspect exactly what was sent to the model before and after.

1Connect: change one line

Your app keeps its code and its provider key. Requests go through Sieve, which sends a leaner version to the same provider.

# Python (OpenAI SDK). Works the same in JS, Go, curl.
client = OpenAI(
    base_url="https://api.openai.com/v1"
    base_url="https://gw.sieve.ai/v1"
)
client.chat.completions.create(
    model="frontier-large", messages=history, tools=tools,
    extra_headers={"X-Sieve-Route": "coding-agent/step"}
)

What happens on every call

  1. Cache-friendly layout: timestamps and ids move to the end, so the provider's discounted cache keeps hitting.
  2. Tool-output trimming: old logs keep their head, tail and every error line.
  3. Memory compaction: older agent turns fold into a short summary; the task is always kept.
  4. Routing: simple questions go to a cheaper model.
  5. Answer cache: repeated short questions are answered without a model call.
  6. Circuit breaker: an agent stuck repeating a failing step is warned once, then stopped before it burns more budget.
  7. Owned hardware: the simplest requests run on a small model on GPUs or AI PCs you already have.
  8. Ledger and quality guard: every saving is recorded; a sample is re-run unoptimized to check quality.

2Run a workload

Cumulative cost

Without SieveWith Sieve

Tokens removed, by lever

Inspect request

    What your app sent

    What Sieve sent

    Orange rows hold changing values (timestamps, ids) that break the provider cache. Green rows were changed by Sieve.

    Result

      Optimized request

      3Read the result honestly

      Why the "cache-friendly" switch matters

      Providers already discount repeated prompt text. If an app puts a timestamp at the top of its prompt, it loses that discount on every call, and Sieve wins most of the money back. If the app is already well built, Sieve still saves by shrinking long agent histories, but much less. Tick the switch to see both cases.

      What this demo does not show

      Prices are illustrative ($3 / $15 per million input / output tokens for the large model, $0.80 / $4 for the small one, cached input at 10%; owned hardware at an assumed $0.02 / $0.06 for power). For stuck agents, the calls a stopped run would have made are simulated, so that saving is shown but kept out of verified savings. Workloads are generated, not real traffic. Answer quality is checked by Sieve's quality guard against real models, which this page cannot call.