# pxpipe：图像转代码降Fable 5长上下文成本60%

- 来源：Rohan Paul (@rohanpaul_ai)
- 发布时间：2026-07-04 13:00
- AIHOT 分数：72
- AIHOT 链接：https://aihot.virxact.com/items/cmr5wmvco06adslc7impjdzzr
- 原文链接：https://x.com/rohanpaul_ai/status/2073270737226674513

## AI 摘要

开发者用pxpipe将代码/日志等文本渲染为1928×1928 PNG图像，作为视觉token（约4,761个）发送给Fable 5，而非按文本token计费。每张图像可容纳约92K字符，密集文本成本大幅降低。但此压缩通过视觉OCR实现，非无损存储：模型可能误读精确ID、哈希或字符串，适合批量背景上下文，不适用于字节级精确场景。据引用，可透明地将代码转为图像让模型OCR，削减约60%成本。

## 正文

Developers found a cheaper way to feed Fable 5 large context by showing it pictures of text.

Normally, every code block, log, tool output, and old chat turn becomes text tokens.

Those tokens are billable units.

pxpipe changes the input. It renders dense text into PNG pages, then sends those pages as image blocks.

Fable 5 can read the pixels with OCR-like vision skills, so meaning often survives.

The price gap appears because one image has a mostly fixed token cost.

That cost barely changes when readable text gets packed into the same image.

a 1928×1928 image costs about 4,761 vision tokens.

The same page can hold roughly 92K characters, so dense code becomes cheaper.

The catch is that this is compression through vision, not lossless text storage.

Fable 5 may understand the gist while misreading exact IDs, hashes, names, or strings.

That makes it useful for bulky background context, but risky for byte-exact facts.

### 引用推文

> Michigan TypeScript：~60% Fable cost cut by transparently turning the code into an image and having the model OCR it. WILD idea. also hilarious. https://github.com/teamchong/pxpipe
