Overview
Compresr reduces LLM token costs by up to 90% through intelligent context compression.
Quick Start
- Get your API Key
- Install the SDK:
pip install compresr - Start compressing
Compression Ratios
Set your target compression ratio to specify the percentage of context to filter out. Our model is trained to match your target, but slight variations are possible.
0.7–0.9 Aggressive, max savings0.4–0.6 Balanced (recommended)0.1–0.3 Conservative, minimal lossIntegration
Python SDK:
pip install compresrREST API: Use
X-API-Key header with any HTTP client