TextCompressor compresses prompts automatically as a local proxy or hosted API. Works with OpenAI, Anthropic, Ollama, LM Studio, and any OpenAI-compatible client.
Tested across 11,760 benchmark questions on War & Peace, legal (FAR), financial (SEC 10-K), and technical (RFC 7231) documents. Light compression saves ~17% with only ~2.7pp accuracy penalty. See full benchmark report →
Start the TextCompressor proxy. Set your app's base URL — no other code changes needed.
Stop words, filler phrases, and redundant tokens are removed deterministically. Nouns, verbs, and meaning are preserved. Legal domain mode protects regulatory language.
Every request is forwarded to the real API with the savings reported in response headers: X-TC-Token-Reduction-Pct, X-TC-Tokens-Saved.
Local proxy is always free and unlimited — the hosted API is for teams who don't want to run their own server. Enterprise pricing available.
Or install via pip: pip install textcompressor