01
抽出 Extract
Keeps the sentences with the highest keyword salience.
A local, four-stage compressor for LLM content — it keeps the salient sentences, trims the rest, and fits a token budget. No inference, no network calls.
Four pure stages, run in order. Each is deterministic — the same input always yields the same output.
Keeps the sentences with the highest keyword salience.
Dedupes, shortens stock phrases, abbreviates.
Enforces the token budget, keeping head and tail.
Adds model-specific framing for Claude, GPT or Cursor.
The same engine is available over HTTP. Post your content to
/api/optimise and receive the compressed text plus metrics.
The command on the right reflects your current settings.
| Endpoint | Purpose |
|---|---|
POST /api/optimise | Compress one document |
POST /api/batch | Up to 50 at once |
POST /api/optimise-for-ai | Balanced, per model |
GET /api/stats | Capabilities |
GET /health | Liveness |