The efficiency layer for AI.
Trimml sits between your application and the model, striking the tokens your prompts never needed — cutting input spend by half while preserving intent and output quality. You pay only a share of what you save.
Install the CLI for Claude Code & Codex:
curl -fsSL https://trimml.com/install.sh | bashDemo: Trimml strikes the redundant tokens from example prompts, keeping a verbatim subsequence — cutting them by roughly 54% with about 41 milliseconds of added latency (internal benchmark).
Benchmark figures measured on Trimml's internal corpus, June 2026; your workload will vary.
How it works
One hop. Half the tokens.
Point your prompts at Trimml before they reach the model. We return the same prompt with the waste removed — nothing added, nothing rephrased.
Send the prompt
One call to POST /v1/compress with your raw prompt and a target ratio. No SDK lock-in, no model changes.
We strike the waste
A purpose-built encoder scores every token for information value and drops the filler — politeness, padding, duplicate context.
Pocket the difference
Forward the compressed prompt to any model. Every token we remove is metered, priced, and reported as savings.
The extractive guarantee
Compression you can audit.
Paraphrased
Every output token is one of your input tokens, in order.
Reordered
The compressed prompt is a strict subsequence of the original.
Hallucinated
Nothing is generated, so nothing can be invented. Diff it yourself.
// kept tokens highlighted — a verifiable subsequence, 23 → 6
Platform
Prompts first. Then the entire loop.
Prompt waste is only the visible layer. Agents burn far more on raw tool output, filesystem noise, and logs no human reads. Trimml is built to optimize all of it.
Prompt optimization
Token-level compression for prompts, system messages, and RAG context. One API call, metered savings on every request.
Agent runtime
An execution layer between agents and the OS that compresses tool output — directory listings, git, logs — before models ever see it.
Efficiency analytics
Org-wide visibility into tokens, spend, and waste — budgets, governance, audit trails, and optimization recommendations.
Pricing
We only earn when you save.
20% of measured savings
Original tokens minus compressed tokens, priced at a transparent blended rate ($3.00/MTok). That's the whole formula.
No subscription, no minimums
If we save you nothing, you owe us nothing. Incentives stay pointed the same direction as yours.
Transparent metering
Every request logs original and compressed token counts. Your invoice is reproducible from the raw usage table.
Assumptions — typical workloads, not guarantees
// estimate only — actual savings are metered per request and depend on your prompts
Developers
Integrate in minutes.
One endpoint, one header. Works in front of every provider — Anthropic, OpenAI, Google, open weights — because the output is just a better version of your prompt.
Stop paying for waste.
Connect a key, route your prompts, watch the savings meter run.
Get started — free