Stretch: Shrink Pages & PDFs, Watch for Changes
Pricing
from $3.00 / 1,000 pages shrink
Stretch: Shrink Pages & PDFs, Watch for Changes
Shrink pages and long PDFs into query packs; watch URLs and wake only on change. 1 Dec 2026, tiktoken cl100k_base, input only: six jobs 12,497,152→80,869 tokens (155×), or 5,151,402→80,869 (64×) from Markdown. $0.003/page, $0.01/doc, $0.002/check, $0.02/change. Cache hits free. No free hosted tier.
Pricing
from $3.00 / 1,000 pages shrink
Rating
0.0
(0)
Developer
Chris Day
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
4 hours ago
Last modified
Categories
Features
Share
Hosted Apify Actor for AI agents that need to spend fewer tokens on the same jobs: shrink a web page, pack a long PDF around a question, or watch URLs and only wake when the content actually changed.
This is a paid, pay-per-event Actor. There is no free hosted tier. Cache hits and failed fetches are free. It does not change the prices of any existing Actors.
Pricing
| Event | USD |
|---|---|
| Actor start | $0.00005 |
Page shrink (page-distilled) | $0.003 |
Large document (doc-converted) | $0.01 |
Watch check (source-checked) | $0.002, including unchanged |
Change / wake (change-notified) | $0.02 when a change is delivered |
| Cache hit / failed fetch | $0 |
Standby HTTP: POST /shrink, /doc, /watch, /research, or /run with "operation". Readiness probes and 4xx input errors are never charged.
Measured savings (method, then numbers)
On 1 December 2026 we ran six typical agent workflows against real public pages and one public PDF (IRS Publication 17, 2025). We counted input tokens only with tiktoken cl100k_base — the text that would be pasted into a model, not replies, system prompts, or tool wrappers. Monitoring was simulated (24 hourly snapshots from one fetch per URL, with two scripted changes) so we did not hit live sites 240 times. Full method, raw tables and caveats: apify-tools/usage-savings/SAVINGS-BENCHMARK.md.
Headlines we will stand behind (and only these):
- Six-job mix: 12,496,992 tokens without the toolkit versus 80,869 with it (about 155×). If the agent already had clean Markdown, the same jobs were 5,151,402 versus 80,869 (about 64×). Accuracy on this toolkit: 87/87 source-grounded questions (see SAVINGS-BENCHMARK.md section 4). An AI given only Stretch’s packs gave the same answers as with full sources, 42/42 blind questions (section 4.5). Quote “reads less / faster / cheaper” only with that accuracy result attached. An AI given only Stretch’s packs answered all 18 questions about the 2.6M-word Mahabharata correctly, the same as with the full book, while sent 680× fewer tokens (blind test; outreach/book-demo/WRITE-UP.md).
- Long PDF, targeted questions: IRS Pub 17 went from 295,581 tokens to a 3,647-token pack (about 81×). The pack body contained every required figure we asked for ($15,750, $31,500, $23,625, $33,100, $23,850, $96,950, a referral to Pub. 550, and April 15, 2026). Publication 17 does not itself print the 0/15/20% long-term capital-gain table.
- Already-clean Markdown still shrinks when you ask a question: 16 pricing pages, 65,043 Markdown tokens → 5,880 in one pack (about 11×). 16 Python docs pages, 144,496 → 11,322 (about 13×; a low-confidence 24k pack now auto-expands — at a hard 24k cap this job was 4,855 / about 30×, which we no longer quote alone).
Caveats, stated plainly: these are job-mix estimates, not a promise that any plan "stretches N times" (official plan pages we checked do not publish a fixed token cap). A query pack can still drop a passage that did not rank. Tiny pages barely shrink. A JavaScript-rendered shell (for example a pricing page that returns almost no HTML text) is flagged NEEDS_BROWSER_RENDER rather than silently returned as empty; we try embedded JSON first.
Speed (measured on this box, 1 Dec 2026, 7:25–7:28am Australia/Hobart)
Fetch + processing, same sources as the token benchmark. After parallel fetches and cache reuse: 16 pricing pages 10.954s → 2.161s (5.07×); one watch cycle of 10 sources 7.255s → 1.935s (3.75×); 20 repeated lookups 16.289s → 6.643s (2.45×). A local 142-page PDF still takes about 3.14s cold (pdftotext + pack); the same bytes reused by hash skip pdftotext (0.767s). On already-fast docs hosts, Stretch can spend more wall-clock on HTML→Markdown and packing (16 Python pages: 1.089s raw GET vs 3.620s with Stretch).
Prefill / time-to-first-token is an estimate, not an API measurement: 2,000 input tokens/s, rounded down from Microsoft’s published ~2,667 prompt tok/s for Llama 3.1 8B Instruct on 1×H100 (vLLM, chat profile, 26 Aug 2025; https://techcommunity.microsoft.com/blog/azurehighperformancecomputingblog/inference-performance-of-llama-3-1-8b-using-vllm-across-various-gpus-and-cpus/4448420). At that rate, the six-job mix (12,496,992 → 80,869 tokens) is about 104 minutes of prefill vs about 40 seconds. Method, caveats and the per-workflow table: apify-tools/usage-savings/SAVINGS-BENCHMARK.md section 3.
Local documents may be up to 80 MB by default (URL fetches 40 MB). Over-limit inputs are refused with a clear error; they are never silently truncated. Set STRETCH_MAX_LOCAL_BYTES / STRETCH_MAX_URL_BYTES (or STRETCH_MAX_BYTES) to raise a cap.
Input
operation:shrink|doc|watch|researchurls: public http(s) URLs (up to 40; 10 fordoc)query: optional question (required forresearch); builds a BM25 pack, drops nav/boilerplate, keeps tablesquestions: optional list of questions; builds a multi-question briefing pack (per-question sections, key facts, coverage).researchmay omitquerywhenquestionsis set.required: optional strings that must appear in a packmaxChars,ttl,returnBody,html(inline shrink)
On a cache hit with no query, the default text is a trusted one-line summary (age, sha256, "unchanged since") so the agent can skip re-pasting the body. Pass returnBody: true to get the stored Markdown (still free for a no-query shrink).
Licence
Proprietary. Copyright 2026 Chris Day. All rights reserved.