What Is TextGrain?
TextGrain is OpenAI's statistical text watermark. It creates a pattern in the words and word pieces a model chooses; it does not add hidden characters or invisible spaces to the text.
A hidden-character check is not a TextGrain test. A matching detector needs the correct key and configuration. The detector access guide explains the requirements.
For formatting problems, inspect hidden characters locally. For a revised draft, compare word and sentence changes locally, without uploading either text. Character cleanup does not test or verify statistical-watermark removal, and an edit percentage is not a watermark score.
From token choices to statistical evidence
- PredictThe language model assigns probabilities to possible next tokens.
- CoupleA secret key and context define vocabulary blocks and pseudorandom costs. Optimal transport couples the choices under an entropy-loss budget.
- SampleA block is selected, then a token is sampled while retaining the original relative probabilities inside that block.
- TestA matched detector reconstructs the keyed quantities from the observed sequence and evaluates statistical evidence.
Sections 2 and 3 of the OpenAI technical report define the vocabulary blocks and statistical test. See the TextGrain report guide for a worked example and the study's conditions.
What the entropy budget means
The report uses an entropy budget to limit average sampling randomness lost in exchange for a detectable relationship. Its guarantees depend on assumptions and specified marginals. An average-over-randomness claim is not a promise that every fixed key, response or numerical solver run behaves identically.
Detection is keyed
A detector needs the matching secret key and technical configuration. The paper's detection reconstruction does not need the generating model's probabilities or entropy budget. Having source code alone would not reveal the secret key used for another system's production responses.
Four concepts that are often confused
| Concept | Where the signal lives |
|---|---|
| Statistical text watermark | Relationships in the generated token sequence. |
| Invisible Unicode character | A particular code point in the string. |
| File metadata | Information stored around content in a file or container. |
| AI classifier | A model's learned judgment about the text, not a keyed signal. |
Practical limits
Text length, matching configuration, repeated contexts, editing and threshold choice matter. The report's mathematical construction does not certify every deployed detector or every edited text. Continue to detection limits, open-source status or ChatGPT rollout questions. TextGrain is only one of OpenAI's provenance signals; this site covers the text side. The AI text watermark removal guide explains what cleanup can and cannot do, and how TextGrain compares with SynthID covers Google's approach.
Sources and verification
OpenAI announced TextGrain on October 5, 2026. Its text detector is initially limited to approved researchers and expert organizations. This independent site provides character cleanup and watermark guides.
- OpenAI EU text provenance announcement
- OpenAI provenance signals guide
- OpenAI content provenance API and text-access requirements
- textGrain technical report (October 5, 2026)
Found an outdated statement? Send a correction with the page address and an official source.