The same work for a smaller bill.
Routing, caching and compaction cut cost per call. Savings are measured per request.
-
Simple work goes to cheaper models.
You approve the models in each tier. Evals score every swap.
-
Answers you already paid for, reused.
Repeat and near-repeat questions come from cache.
-
Shorter context, same system prompt.
Tool output and history are trimmed. System prompts are never changed.
What it needs
One base URL change.
from openai import OpenAI
client = OpenAI(
base_url="https://gateway.bloomfactory.ai/v1", # One line. OpenAI-compatible.
api_key=os.environ["BLOOM_API_KEY"],
) Questions
Will quality drop?
Nothing routes to a model you have not approved. Closed-loop evals score every swap against the model you asked for, and a cheaper model only keeps work it handles well.
What latency does it add?
Routing adds one decision before the model call and, on a cache hit, removes the model call. Measured p50 and p95 are shared on your AI Scan readout.
Can we turn it off per workload?
Yes. Routing, caching and compaction are each switched per workload. A workload can run in watch mode first, where Bloom Factory shows what it would have saved without changing a request.