LLM Context Compressor: Cut Prompt Tokens for GPT & Claude avatar

LLM Context Compressor: Cut Prompt Tokens for GPT & Claude

Pricing

Pay per usage

Go to Apify Store
LLM Context Compressor: Cut Prompt Tokens for GPT & Claude

LLM Context Compressor: Cut Prompt Tokens for GPT & Claude

Shortens text before an LLM prompt by removing English stop words and collapsing whitespace. Deterministic and rule-based, no model is called. Lossy and English-only.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

John Vedovino II

John Vedovino II

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Features

Limited permissions

Share

Headroom LLM Context Compressor

Compress LLM tool call outputs and context strings by removing stop words and redundant whitespace — the ratio depends on the text and level and is returned in every run.

How it works

  • low: removes only articles (the, a, an) — about 5-15% on prose
  • medium (default): removes common function words — about 20-40% on prose
  • high: removes articles, auxiliaries, prepositions, and pronouns — about 35-55% on prose

Useful for reducing token costs in large AI workflows where raw tool outputs are passed back into context.

Input

FieldTypeRequiredDescription
textstringyesThe text to compress
compressionTargetstringnolow, medium, or high (default: medium)

Output

Each run pushes one dataset item:

{
"original_length": 1234,
"compressed_length": 567,
"compression_ratio": 0.54,
"compressed_text": "...",
"target_level": "medium"
}