Blog
PxPipe model compatibilityLLM image text readinggist readers vs full readers

Which AI Models Can Read PxPipe's Text-as-Image Context?

PxPipe turns context into images to cut token costs. A 15-hex-ID test shows which models read it well, which only get the gist, and which to avoid.

Portrait of Luis Chavez-Mattos
Edited by Luis Chavez-Mattos, Director, Product··RSS

For Engineering

A flat poster of a small page packed with hairline bars of shrunken text, set against a large half-circle with one small accent square on the page corner.

Which AI models can read text that has been compressed into images?

According to PxPipe's own test, Gemini 4 Argon reads dense pixel text almost perfectly (15 of 15 hidden IDs), the Gemini Flash models and the original Fable 5 come close (14 and 13), and newer Claude models do much worse. Opus 5.5 got 3 of 15 and Sonnet 5.5 got 2. PxPipe sorts models into full readers, gist readers, and models you should not image at all. The risk with weak readers is not an error message. It is a confident wrong answer.

TL;DR

  • PxPipe is an open-source (MIT licensed) local proxy that swaps bulky text for PNG images in a coding agent's requests, because images can be cheaper per character than text tokens.
  • Its main test hides 15 random hex IDs in log images and asks the model to read them back exactly. Scores vary from 15 down to 2.
  • Full readers (Gemini 4, Gemini Flash, original Fable 5) can be trusted with exact values. Gist readers (Opus 5.5, Fable 5.1 and 5.2) understand the topic but should not be trusted with exact IDs or numbers.
  • Models on the do-not-image list include Haiku 5.5, Sonnet 5.5, GPT 6 Astra, Kimi K3 and DeepSeek V4.1 Flash.
  • A weak reader fills unclear pixels with a plausible guess. PxPipe's mitigation is a small text factsheet sent beside the image with the exact IDs and numbers.
  • Model support shifts between releases, so a model that reads well today can get worse next version, as Opus 5.5 did.

What is PxPipe and why would anyone turn text into images?

An AI coding agent sends a lot of text with every request: a long system prompt, documentation for its tools, big file reads, and the history of the conversation. You pay for all of that in tokens, and it adds up.

PxPipe is a local proxy that runs on your machine. Your agent sends its request to it, PxPipe rewrites the heavy parts into PNG pages, and the request goes on to the provider. The model's response comes back as normal text.

The trick works because an image is priced by its pixel size, not by how much text is printed inside it. According to the project, on real Claude Code traffic one image token holds about 3.1 characters of dense code or JSON, while a text token holds roughly one. The rendered page uses a tiny 5 by 8 pixel font, with a banner on top and a small arrow wherever the original text had a new line.

PxPipe only images three kinds of input: the big static block of system prompt and tool docs, large tool results above roughly 6,000 characters (file reads, long command output), and older chat history. Your recent turns and your own messages stay as text.

The project reports a 59 to 70% lower end-to-end bill on one Claude model measured in June. That figure includes output tokens and cache reads that the proxy never compresses. These are the project's measurements, not independent ones, but it publishes the method: for every request it sends the original body to a free token-counting endpoint and logs the comparison to a local events file you can check.

How does PxPipe test whether a model can read its images?

The key test is simple and hard to fake. PxPipe hides 15 random hex IDs inside log images and asks the model to read them back exactly. A hex ID is a string like a3f09c1e. There is no context to lean on, so a model cannot guess its way through. It either reads the pixels or it does not.

Reported results:

ModelIDs read correctly (of 15)
Gemini 4 Argon15
Gemini 3.6 to 3.8 Flash14
Fable 5 (original)13
Fable 5.1 and 5.2 (with 2 px row spacing)14 and 13
Opus 5.53
Sonnet 5.52

Two details matter here. First, newer is not better: the newer Claude models went backwards on this task. Second, PxPipe adjusts render settings per model. Fable 5.1 and 5.2 dropped at first, but adding 2 pixels of spacing between rows brought them back up to 14 and 13.

What are full readers, gist readers and do-not-image models?

PxPipe turns the scores into three tiers.

Full readers. Gemini 4, the Gemini Flash models and the original Fable 5. They read the pages accurately enough that the savings come with little downside. Imaging is on by default for these.

Gist readers. Opus 5.5 and Fable 5.1 and 5.2. They understand what the history is about and do fine on arithmetic. You should not trust them with exact IDs or numbers pulled from an image. Think of someone skimming a page of small print: they know what it says, but they would not swear to the account number.

Do not image. Haiku 5.5, Sonnet 5.5, GPT 6 Astra, Kimi K3 and DeepSeek V4.1 Flash. The project says to leave these on plain text. Requests to models not on its list pass through unchanged.

By default PxPipe images Fable 5, Opus 5.5 and every Gemini model. That means Opus, a gist reader, is on unless you turn it off. The dashboard has chips to toggle individual models, or you can set the PxPipe models variable to only the ones you trust.

What happens when a weak reader misreads the pixels?

It does not fail loudly. It guesses.

A vision model is not an OCR engine. It never sees discrete letters, only patterns of pixels. When those patterns are unclear, it fills the gap with whatever seems most likely. The result reads as confident and correct.

PxPipe's README says this happened once in weeks of real use: the model recalled a person's name from image-based chat history and got it confidently wrong. The project also found that in this font a zero and an eight differ by a single pixel, so even Gemini 4 sometimes read a zero in a request ID as an eight.

This is the core hazard of any compression that hides text from the reader. You do not get a warning. You get a plausible wrong answer, and you only catch it if you check.

How does the text factsheet fix the problem?

PxPipe sends a small block of plain text next to each image. It contains the exact IDs and numbers found in the imaged content. The model can use that list to check what it thinks it read from the picture.

This targets the highest-risk content (identifiers, amounts, hashes) without giving up the savings on prose and code, which are more forgiving. It does not remove the risk entirely, and it works best on strings the tool can detect.

The project also points out that coding sessions are less exposed. An agent usually re-reads a file before editing it, so a misread in the history gets corrected from the source. The risk is higher when you use the history for pure recall, or to pull exact values from logs.

What does this mean for you?

If you use a coding agent on a company account, the lesson is to match the tool to the model. On Gemini 4, Gemini Flash or the original Fable 5, the project says the savings are large and the reading is near-perfect. On Opus 5.5, it can still save money in a normal coding session where the agent can re-read files, but avoid it for work where exact strings matter. On Sonnet, Haiku or most open models, the project says not to bother yet.

If you manage a budget, treat vendor and project savings numbers as a starting point. The useful part of PxPipe is that it logs your own usage, and pxpipe stats prints a report of requests, compression, latency and cache hits, even when the proxy is not running.

If you are not a developer, the broader lesson applies to any AI shortcut: test it on your own data, with answers you can verify, before you trust it. Model behavior changes between versions.

A simple version of PxPipe's test you can copy for any tool or model:

1. Generate 15 random 8-character IDs (letters a-f and digits).
2. Put them in a long block of realistic text (a log, a report).
3. Run it through the compression or summarization step you want to test.
4. Ask the model to list all 15 IDs exactly, in order.
5. Score exact matches. Re-run after every model update.

Practical settings if you try PxPipe: start it with npx pxpipe --proxy (it listens on port 47821 and serves a dashboard at the same address), and launch an agent behind it with pxpipe warp -- claude. Sub-agents on models not on the list pass through as plain text, so you can send byte-exact jobs to one of those and keep the main session imaged. There is also an offline export that writes page images, the factsheet, a manifest and a prompt file to a folder, so you can upload them to any tool that accepts images.

The downsides are modest but real: encoding the PNGs adds some latency, and the list of good readers keeps moving.

Could you build your own model-testing tracker?

If your team compares AI models or settings, the results usually end up in a scattered spreadsheet. A small internal app could hold the test prompt, the model and version, the score out of 15, and the date, with a flag when a new version scores lower than the last. Remy builds this kind of tool from a plain-English description: a form to log each test run, a table of results by model, and sign-in so only your team can edit. Remy is a paid product, with a 7-day free trial, and AI usage is billed separately at cost. Describe the fields you want and the alert you need, and it produces a deployed app you own.

Frequently Asked Questions

5 questions

Is PxPipe safe to use for work with exact values like invoice numbers or API keys?

Not on a gist reader or a do-not-image model. Even Gemini 4 once confused a zero and an eight in a request ID. The factsheet helps, but for byte-exact work, keep the model on plain text or send the job to a sub-agent that passes through unimaged.

Why did Opus 5.5 score so much lower than the original Fable 5?

The sources do not explain why. They only report that the newer Claude models went backwards on this test, with Opus 5.5 at 3 of 15 against 13 for the original Fable 5. This is why PxPipe tracks per-model results and adjusts render settings for each.

Does PxPipe change the model's answers?

It only rewrites the request. The response streams back as normal text. The project reports a 59 to 70% lower end-to-end bill on one Claude model measured in June, though these are its own measurements.

Will PxPipe lose my prompt cache discount?

On Anthropic requests it keeps the prompt cache boundary in place. That matters because if the images changed on every turn, you would lose the cache discount and could pay more rather than less.

Which agents does PxPipe work with?

The project lists Claude Code, Codex, Open Code, OMP and the Antigravity CLI. It handles Anthropic messages, OpenAI responses and chat completions, and Google's generate content requests.

How we source, write, and correct our articles. Editorial standards

Related articles

Straight to your inbox.
New pieces as they publish. No noise.