AI Coding Costs Cut by Up to 70% with Image Conversion Trick

Developers released pxpipe, an open-source project that reduces token usage when working with Claude Code by converting text into images before sending it to the model. The tool exploits Anthropic’s pricing structure for images, which charges based on pixel dimensions rather than content.
By packaging dense code into images, users can significantly lower token consumption, between 59 and 70 percent, according to the creators. Pxpipe functions as a local proxy installed between a user’s terminal and the Anthropic API.
It focuses on compressing long outputs from tools, older conversation history, and static system prompts. While effective with Claude Fable 5, it currently has issues with Claude Opus 4.8, which misinterprets around 7% of generated images.
The project successfully solved 10 of 10 problems on SWE-bench Lite with a 65% reduction in request size, though performance dipped slightly on the more complex SWE-bench Pro. Users can activate pxpipe via an environment variable and monitor token savings through a local panel.
Surfaced by the Solutions lens — one of the vital signs ovr.news reads.
How we evaluated this
AI summary
read the original for the full story — Read on hipertextual.com . How we work →