PixText: The Open-Source Text Editing Model and the Web Tool, Explained
PixText refers to two separate products: an Apache-2.0 research model from ATH-MaaS that rewrites text inside pixels, and a browser-based photo text editor at pixtext.io. The model ships Teacher and MeanFlow variants and a TextRefinementBench dataset. This guide separates the two and gives the exact requirements, pricing and limits of each.
View 2 referencesAllow the functional cookie to save your likes. Privacy details
What Does PixText Refer To?
PixText names two unrelated things that often appear in the same search results. One is an open-source research model from ATH-MaaS that edits text inside an image while preserving the surrounding pixels. The other is a browser-based photo editor at pixtext.io that lets a user click words in a picture and replace them.
They share a goal but not a codebase, a licence or a delivery model. The model card is a technical release with weights and inference code. The web tool is a consumer product with accounts and payments. Decide which one you mean before reading further.
How Does the PixText Model Edit Text in Pixel Space?
The model refines local text in pixel space: you supply an image, the regions to edit and the target text, and it generates those regions using the image as context. Pixels outside the actual edited footprints are preserved. Multiple targets can be generated jointly in one pass.
Crops align to 16-pixel patches, and pixels outside those footprints remain identical to the original RGB image. Boxes use original-image coordinates and half-open intervals; invalid or out-of-image boxes are rejected. You provide one character or one text line per target, and up to 12 targets are processed per pass, with the last written target winning on overlapping crops.
| Model | Default sampling | Glyph guidance |
|---|---|---|
| PixText-Teacher | 25-step Euler | 3.3 |
| PixText-MeanFlow | 4-step interval Euler | 3.3 |
What Are the Teacher and MeanFlow Variants?
MeanFlow is the default quick-start option: it uses four steps instead of the Teacher's 25, and it needs no additional text encoder, OCR model, VAE or teacher model. At the default guidance setting, four MeanFlow updates use seven model forwards. The Teacher variant keeps the fuller 25-step schedule.
Each package contains weights, configuration, bundled fonts and SHA-256 checksums. The renderer picks the first bundled font covering the whole target string, using PuHuiTi then Go Noto; unsupported text returns a coverage error rather than missing-glyph squares. The model weights and documentation are Apache-2.0, while bundled fonts keep their own terms.
What Do I Need to Run the PixText Model Locally?
Local inference is a CUDA job with a few non-obvious system dependencies. The model card states each requirement explicitly, and skipping any one of them will stop the pipeline before an edit is produced. Work through the list below in order.
- Use Python 3.11 or newer with a CUDA GPU. Editing requires CUDA FlexAttention.
- Install a CUDA build of PyTorch and torchvision appropriate to your machine.
- Install the package with
pip install "git+https://github.com/ATH-MaaS/PixText.git". - Add RAQM support to Pillow and HarfBuzz to the system (
libharfbuzz0on Debian or Ubuntu). Font files come from the model packages, so no system font install is needed. - Verify the release from its root with
sha256sum -c manifest.sha256, which checks every model file, config and font.
The benchmark, TextRefinementBench, ships as a separate dataset package with its own card. The paper is listed as arXiv 2610.18284.
How Do I Use the PixText Python API?
The API takes bounding boxes and target strings, then returns an image plus metadata recording model identity, seed, sample identity, sampling settings and crop geometry. The example below uses the default MeanFlow package. Swap in the Teacher package when the slower 25-step variant is preferred.
from pixtext import PixTextPipeline, TextEdit
pipeline = PixTextPipeline.from_pretrained("models/PixText-MeanFlow")
result = pipeline.edit(
"input.png",
edits=[TextEdit(bbox=(120, 80, 160, 125), text="鹿")],
seed=42,
)
result.image.save("output.png")
Swap in models/PixText-Teacher to use the other variant; both can coexist in one process. Inputs are Pillow images or local paths, converted to upright RGB using EXIF orientation, so coordinates refer to the upright image. edit_batch supports multiple images, per-image edit lists, seeds and sample IDs.
What Does the pixtext.io Web Editor Do?
The web tool changes words already inside a picture. You upload a JPG, PNG or WebP up to 10 MB, click a detected text block, type the replacement, and the service erases the old pixels and rebuilds the background behind them. Standard edits remain adjustable layers until download, and the result exports as a PNG at the processed resolution.
Images longer than 4096 px on one side are scaled down before editing. Detection works well for Latin-script languages and Chinese, but Japanese and Korean are not reliably detected; you can still type replacement text in any language, though the 47 built-in fonts are Latin-focused. A manual brush handles anything the automatic erase misses.
Is PixText Free and What Does AI Match Cost?
The web editor is free to start. Standard edits and downloads have no daily limit and no watermark, though a free account is required to download. Signing in with Google adds one free AI match per day; extra AI match packs start at $1.99 for 10 as a one-time payment with no subscription.
AI match is the option for lettering no font can copy, such as neon signs, hand lettering or logos. It redraws the edited line in the image's own style, but an exact match is not guaranteed and the site advises checking spelling before download. Images are processed in memory and not written to storage; only small AI match previews are kept for up to 72 hours for quality checks.
What Images Does PixText Handle Well or Badly?
The deciding factor is what sits behind the text, not whether the image is a photo or a screenshot. Flat colours and soft gradients erase cleanly almost every time; simple photo areas such as sky or walls are usually clean; busy textures such as brick, fabric and foliage can leave a rebuilt area that looks smoother than its surroundings.
Text printed directly on textured surfaces, including glass, fabric and reflective packaging, is harder. The brush tool can touch up leftovers, and keeping the replacement similar in length helps cover the same area. The tool also warns that removing watermarks or logos is only appropriate on images you own or have permission to edit.
Common Questions About PixText
These questions cover the practical decisions readers face after discovering the name. Each answer is drawn from either the model card or the web tool's own pages, and the two are kept separate throughout so you can tell which product is being discussed.
Are the PixText model and pixtext.io the same project?
No. The model is an Apache-2.0 research release from ATH-MaaS with downloadable weights. The website is a separate browser editor with free and paid tiers. They solve similar problems through different systems.
Does the PixText model need an OCR model?
MeanFlow does not: the card states it needs no additional text encoder, OCR model, VAE or teacher. You still supply the regions to edit, so the system is not a fully automatic detect-and-replace pipeline.
Can I use the PixText web tool on my phone?
Yes. It runs in the browser on desktop and phone. On a computer you can paste a screenshot with Ctrl+V or Cmd+V; on a phone you upload from the photo library.
What licence covers the PixText weights?
Model weights and documentation are Apache-2.0. Bundled fonts keep their own terms, described in each package's fonts directory, so check those before redistributing generated assets.