
Connect
Drop in our proxy SDK or point your gateway at our endpoint. Zero code rewrites.
Analyze
We trace every request — provider, model, prompt fingerprint, tokens, latency, retries.
Optimize
Get prioritized recommendations and turn on routing rules with one click. Roll back instantly.
import OpenAI from "openai";
const openai = new OpenAI({
baseURL: "https://api.spendtensor.io/v1", // ← one line
apiKey: process.env.OPENAI_API_KEY,
});
// Every request is now traced, routed, and optimized.
await openai.chat.completions.create({
model: "gpt-4o",
messages: [{ role: "user", content: "Save me money." }],
});What we capture on every call
Metadata only by default. Full prompt and completion capture is opt-in per workspace, with redaction and sampling rules you control.


Turn savings on, one rule at a time
Recommendations are ranked by projected monthly savings and implementation risk. Each one shows the evidence behind it — traffic volume, current model, candidate model, and eval scores.
- Semantic caching for repeated prompts
- Model downgrades that clear your quality floor
- Prompt compression and system-prompt dedupe
- Batch windows for non-interactive workloads
- Retry and timeout tuning to kill silent waste
A typical first month
Connect and baseline
Point one service at SpendTensor or connect read-only provider keys. We backfill up to 90 days of historical usage so you start with a real baseline, not an empty chart.
Attribution and budgets
Tag traffic by team, app, and environment. Set budgets with 50/80/95% alerts so nothing surprises you again.
First optimizations
Enable semantic caching and the top-ranked model swaps. Most teams see a measurable drop in daily spend within five business days.
Routing at scale
Ramp routing rules across services with quality gates and rollback. Finance gets a verified savings report at month end.
Two ways to connect
Proxy mode instruments every request in real time. Read-only key mode pulls provider usage APIs on an hourly schedule — no traffic changes at all.
Start with one service
Roll out per service or per environment. Staging first is a common path; the dashboard separates environments cleanly.
Nothing risky by default
Routing and caching are opt-in. Until you enable them, SpendTensor only observes — zero behavior change to your product.
Hourly sync, live proxy
Proxy traffic appears within seconds. Key-based ingestion syncs hourly and reconciles against provider invoices.
See it running on real data
Open the interactive demo dashboard, or have our team walk your stack and estimate your savings.
