Which AI Models Actually Work With PX Pipe's Image Compression?
PX Pipe turns context into images to cut token costs, but not every model can read them. Here's the model-by-model breakdown.

What is PX Pipe and why does model choice matter so much?
PX Pipe is an open-source proxy (MIT licensed, roughly 7,600 GitHub stars) that sits between your coding agent and the model provider. It rewrites bulky parts of your context, system prompts, tool docs, long tool outputs, and old chat history, into rendered PNG images before the request goes out. The trick works because image tokens and text tokens are priced differently: an image token can hold several times more characters than a text token holds. On real Claude traffic, the project found one image token carries about 3.1 characters versus roughly one character per text token, so swapping dense text for a rendered page of it can cut the token count sharply.
But this only saves money if the model can actually read the picture. That’s the catch, and it’s the whole reason model choice matters here. A model that can’t parse dense pixel text won’t throw an error. It will guess, confidently, and sometimes get it wrong. So the real question isn’t whether PX Pipe compresses your context. It’s whether your model can still see what’s in it afterward.
TL;DR
- Gemini 4 is the strongest reader tested, correctly recovering all 15 hidden hex IDs in PX Pipe’s benchmark, making it the safest model to pair with image-based context compression.
- Opus 5.5 and Sonnet 5.5 score far worse than their predecessor Claude 5 on the same test, reading only 3 and 2 of 15 hex IDs respectively, which pushed the project to add extra row spacing just to partially recover accuracy.
- Models get sorted into tiers: full readers (Gemini 4, Gemini Flash, original Claude 5), gist readers that grasp context but can’t be trusted with exact values (Opus 5.5, Claude 5.1/5.2), and a do-not-image list (Haiku 5.5, Sonnet 5.5, GPT 6 Astra, Kimi K3, DeepSeek V4.1 Flash).
- Weak readers don’t fail loudly, they hallucinate plausible-looking answers from unclear pixels, which the README documents happening in real use when a model misremembered a name from an imaged chat history.
- A text factsheet travels alongside the images specifically to catch near-miss errors, like Gemini 4 occasionally misreading a zero as an eight in a single-pixel font difference.
- Reported savings are substantial on compatible models, with one demo showing a $42 Claude Code session dropping to about $6 using PX Pipe, and benchmark runs on SWE-bench showing 60 to 70% lower token spend at comparable task success rates.
- The tool includes safeguards for exact-match work, letting you route byte-precise sub-agent tasks to untrusted models as plain text while keeping the main session imaged.
› Build a credit limit review app for 800 relationship managers
Live URL today. Role-based access, audit trail and SSO come built in.
How does PX Pipe decide what to turn into an image?
PX Pipe doesn’t image everything in a request. It targets three categories: the large static block of system prompt and tool documentation, big tool results such as file reads or long command output above roughly 6,000 characters, and older chat history. Your most recent conversation turns and your own messages stay as plain text. The response coming back from the model is never touched either, it streams as normal text.
This selective approach matters for compatibility. Even on models with weak image-reading skills, the parts of the context the agent needs fresh and exact, recent turns, your current instructions, stay as text. The imaged portions are generally older or bulkier material the model needs to reference in gist form rather than character-by-character.
Why do Gemini models read PX Pipe’s pages so much better than Claude?
PX Pipe’s core test hides 15 random hexadecimal IDs inside rendered log images and checks whether the model can read them back exactly. Gemini 4 got all 15 correct. Gemini’s Flash tier got 14 out of 15. The original Claude 5 model got 13. These numbers suggest Gemini’s vision stack handles dense, small rendered text (the project uses roughly 25 by 8 pixel lettering) with high fidelity.
Claude’s newer models told a different story. Opus 5.5 managed only 3 out of 15, and Sonnet 5.5 got just 2. That’s a significant regression from the original Claude 5, not an improvement. PX Pipe’s team responded by adding 2 pixels of extra spacing between text rows specifically for Claude 5.1 and 5.2, which recovered their scores to 14 and 13. No such fix was reported for Opus 5.5 or Sonnet 5.5, which remain in the weakest tiers.
The underlying reason, per the project’s own explanation, is that model vision isn’t OCR. The model doesn’t see discrete characters, it infers them from pixel patterns. When those patterns are ambiguous, a weaker visual reasoner fills the gap with a statistically likely guess rather than flagging uncertainty. That’s a meaningfully different failure mode than a parsing error, and it’s harder to catch.
Which models should you actually trust with imaged context?
Based on the hex-ID benchmark, PX Pipe sorts models into three practical tiers:
Full readers: Gemini 4, Gemini Flash, and the original Claude 5. These models read dense rendered text at near-perfect accuracy and are safe for both coding context and cases where exact IDs or values matter.
Gist readers: Opus 5.5 and Claude 5.1/5.2. These models understand the general content of an imaged page and handle tasks like arithmetic fine, but they can’t be relied on for exact strings, IDs, or numbers pulled from an image. In a coding session where the agent re-reads a file before editing it, this limitation often doesn’t bite. In a pure chat-recall or log-analysis use case, it can produce quietly wrong answers.
Built like a system. Not vibe-coded.
Remy manages the project — every layer architected, not stitched together at the last second.
Do-not-image list: Haiku 5.5, Sonnet 5.5, GPT 6 Astra, Kimi K3, and DeepSeek V4.1 Flash. The project explicitly recommends against sending these models rendered image context at all, since their accuracy on the benchmark was too low to trust.
PX Pipe ships with a dashboard that lets you toggle which models get imaged via a kill switch, and by default it only images Claude 5, Opus 5.5, and Gemini models. If you don’t trust Opus with imaged context, you can turn that off individually or restrict the tool to models you trust through an environment variable.
Is PX Pipe worth using if you’re not on Gemini?
It depends on what you’re doing. If you’re running Gemini 4 or Gemini Flash, the combination of near-perfect read accuracy and large token savings makes PX Pipe a strong fit. The original Claude 5 is nearly as solid.
If you’re on Opus 5.5, it can still save money in a normal coding workflow, especially since agents often re-read files directly before editing them, which limits the damage from occasional misreads. But the project itself warns against relying on it for tasks where exact strings or numeric values pulled from an image matter.
If you’re on Sonnet, Haiku, or most open models like Kimi or DeepSeek, the README’s own guidance is to skip imaging for now. The savings mechanism is identical across models, it’s the model’s ability to read the compressed format that varies, and for these models that ability isn’t there yet.
One useful detail: because model vision quality shifts between releases (Opus 5.5 reads worse than the Claude 5 it replaced), a model that works well with PX Pipe today could regress in a future update. The project tracks this with ongoing benchmarking, but it’s worth checking current results before assuming last month’s compatibility still holds.
Frequently Asked Questions
What is PX Pipe?
PX Pipe is an open-source local proxy that reduces token costs for coding agents by rendering bulky context, like system prompts, tool docs, and chat history, into PNG images instead of sending it as raw text, since image tokens can hold more characters per token on many models.
Which model reads PX Pipe’s images most accurately?
Gemini 4 was the top performer in PX Pipe’s internal benchmark, correctly reading all 15 hidden hex IDs in a test image, ahead of Gemini Flash and the original Claude 5.
Why do Opus 5.5 and Sonnet 5.5 perform worse than older Claude models?
PX Pipe’s testing found Opus 5.5 and Sonnet 5.5 score far lower on reading dense rendered text than the original Claude 5 did, a regression the project worked around for some Claude variants by adding extra pixel spacing, though Opus 5.5 and Sonnet 5.5 remain weak readers.
Does PX Pipe change how the model responds?
No. PX Pipe only modifies the outgoing request by converting selected content into images. The model’s response streams back as normal text, unchanged.
Can I use PX Pipe safely if my model is on the do-not-image list?
›Build a claims triage app for 4,000 insurance adjusters
One prompt. Role-based access, audit trail and SSO come built in.
You can disable imaging for specific models through the dashboard’s kill switch or a configuration variable, and you can route exact-match tasks to sub-agents running untrusted models as plain text while keeping the main session imaged on a model that reads well.