
Description
Compresr is an API that compresses the context you send to a large language model. You send a long document or text along with your question, and it returns a shorter context that keeps the parts needed to answer. The site says compression can cut tokens by up to 90%, which lowers token cost and latency, and that light compression matches or beats full-context accuracy on public benchmarks. It offers question-agnostic compression, such as trimming, truncation and summarization, and question-aware compression that keeps the tokens relevant to your query. Compresr is available as a Python SDK, a TypeScript SDK or a hosted HTTP API, and it can be dropped into agent and retrieval-augmented generation (RAG) pipelines. Teams can run it inside their own VPC, and the site mentions on-premises deployment. A playground on the site lets you try it on your own file, and the site's homepage says the company is backed by Y Combinator. It is aimed at developers who pay for large prompts and want to keep answer quality while sending less text.…
Highlights
- Cuts prompt tokens by up to 90%
- Question-aware and question-agnostic compression
- Python and TypeScript SDKs plus HTTP API
- Drop-in step for agents and RAG pipelines
- Can run inside your VPC
Ratings & Reviews
No ratings yet
Be the first to rate Compresr.
People also visit

context-window-management
Strategies for managing LLM context windows including summarization, trimming
Compresr FAQ
What does Compresr do?
It shortens the context you send to an LLM by keeping the parts that matter for your question, so you pay for fewer tokens.
How much can I save?
The site says it can cut tokens by up to 90%. Savings depend on your document and your question, and the playground lets you test it on your own file.
Which SDKs are available?
A Python SDK, a TypeScript SDK and a hosted HTTP API, all with one API key.
Can I run it on my own infrastructure?
The site says it runs inside your VPC and mentions on-premises deployment. You can contact the team about that option.
What are the best Compresr alternatives?
Popular alternatives to Compresr include The Token Company, Llmtrim and SQZ. See all Compresr alternatives





