AIToday
Large Language ModelsAI Coding AssistantsOpen-Source AIAI Business & IndustryTHE DECODERPublished: Jul 5, 2026, 04:00 JST2 min read

Open-source tool cuts Claude, GPT token costs 59–70% by hiding text in images

Open-source tool cuts Claude, GPT token costs 59–70% by hiding text in images

Key takeaway

  • A new open-source tool called pxpipe converts text into compressed images to exploit how AI models are priced, cutting token costs by 59–70 percent for Claude Code and GPT users.

  • The technique works because images are charged at a fixed rate per pixel rather than per character, allowing dense content to be packed far more cheaply.

  • The tradeoff is that image-based text can be slightly garbled and processing is slower, though Fable 5 achieves 100 percent accuracy on math problems while other models like GPT 5.5 struggle more with image context.

3 Key Points

  1. What happened

    Developer Steven Chong released pxpipe, an open-source proxy that converts long text inputs—system prompts, code, chat history—into compressed PNG images before sending them to Claude Code and other AI models. The trick exploits Anthropic's pricing: text costs roughly one token per character, but images cost a fixed number of tokens regardless of content density, allowing about 3.1 characters per image token. In one Fable 5 demo, session costs fell from $42.21 to $6.06.

  2. Why it matters

    For businesses and developers using Claude Code or GPT 5.6 at scale, token costs directly affect operational spending. This technique could reduce invoices by 59 to 70 percent on many workflows. However, the approach is lossy—exact strings like hashes can become garbled when read from images, and processing is slower because the model must run images through a vision encoder instead of reading text directly. Fable 5 hits 100 percent accuracy on math benchmarks, but Opus 4.7 and 4.8 misread about 7 percent of rendered images, and GPT 5.5 also performs worse with image context.

  3. What to watch

    pxpipe supports Claude Fable 5 and GPT 5.6 by default; Opus 4.7, 4.8, and GPT 5.5 can be enabled manually. If this technique catches on widely, AI companies may respond by raising image processing prices. The approach is not new—Deepseek built a similar OCR system that compresses text documents by up to a factor of ten while retaining 97 percent of information.

Ask the AI about this article →

FAQ

How much can I save using pxpipe?
Typical savings average 59 to 70 percent. In one Fable 5 demo, session costs dropped from $42.21 to $6.06.
What are the downsides of converting text to images?
The approach is lossy, meaning exact strings like hashes can become garbled when read from images. Processing is also slower because the model must run rendered images through a vision encoder instead of reading text directly.
Which models does pxpipe support?
Claude Fable 5 and GPT 5.6 are supported by default. Opus 4.7, 4.8, and GPT 5.5 can be enabled manually, though Fable 5 achieves 100 percent accuracy in benchmarks while Opus 4.7 and 4.8 misread about 7 percent of rendered images, and GPT 5.5 also does worse with image context.

Get the latest Large Language Models news every morning

For example, today's edition would include:

  • Visko raises $10M, launches live AI video model OrbisSiliconANGLE AI · 1h ago
  • Runway unveils Solaris, an AI that generates app interfaces in real timeTHE DECODER · 1h ago
  • Google AI Search flags Facebook users as dangerTHE DECODER · 1h ago

AI-summarized, only the topics you pick — one digest a day via Email, Slack, or Discord.

Free · takes 30 seconds · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. Q&As are published on this page for other readers too.

Related Articles

Next articleMidjourney seeks to force studios to disclose their own AI use