pxpipe Cuts Fable 5 Token Usage by Rendering Text as Images
Developers have introduced pxpipe, a local proxy tool designed to drastically reduce token consumption for AI coding assistants, specifically targeting Fable 5 and Claude Code environments. By converting bulky text contexts into compact images, pxpipe claims to slash input token counts and lower end-to-end API bills by approximately 59 to 70 percent, depending on workload density. The tool operates as a local proxy that intercepts API requests and rewrites high-volume text components, such as system prompts, tool documentation, and older conversation history, into PNG images before transmission. This strategy exploits the disparity between text and image token pricing: while image token costs are fixed by pixel dimensions, dense content like code or JSON can pack approximately 3.1 characters per image token compared to roughly one character per text token. Consequently, a payload of 25,000 text tokens can be rendered as roughly 2,700 image tokens without loss of visual fidelity for the model. Benchmarks indicate significant efficiency gains without compromising task resolution. In a SWE-bench Lite pilot, pxpipe achieved a 100 percent resolution rate across ten instances, matching the baseline while reducing request size by 65 percent. A harder SWE-bench Pro evaluation showed 14 out of 19 instances resolved on, compared to 15 out of 19 off, with the team attributing the single divergence to run-to-run variance rather than compression artifacts. Gist recall tests yielded a 98 percent success rate on complex decision tracking. The proxy calculates savings by comparing the compressed request against a counterfactual uncompressed count, ensuring accurate per-request metrics. pxpipe defaults to Fable 5, which demonstrated perfect rendering in internal tests. Support for GPT 5.6 and GPT 5.5 is available, though GPT 5.5 performance may degrade on imaged context. Opus 4.8 is opt-in only due to a noted 7 percent misread rate on renders; users are advised to proceed with caution. The tool filters conversions based on a profitability gate, leaving sparse English prose and small payloads as plain text to avoid unnecessary overhead. A live dashboard provides real-time statistics on tokens saved and conversion events. The project explicitly warns that compression is lossy. While suitable for code generation and general context, pxpipe is not safe for tasks requiring byte-exact recall of short strings, such as hexadecimal hashes, secrets, or identifiers. In testing, the tool failed to accurately recall 12-character hex strings on Opus and showed mixed results on Fable 5, exhibiting silent confabulation rather than errors. To mitigate this, developers can route exact-recall subagents to non-Fable models or disable imaging entirely for specific workloads. The system is open-source under the MIT license and includes a library interface for programmatic use.
