Checking the Model Behind an API with “Dirty Token” Probes
“Dirty token” probes use distinctive text fragments to compare an API’s behavior with known model baselines. This article explains how to select probes, run repeatable tests, interpret unusual responses, and report cautious model-family assessments—without treating behavioral similarity as proof of identity.
1. Why Check the Model Behind an API?
Some providers advertise a flagship model while routing requests to a less capable model, an open-source alternative, or another third-party model. This practice is sometimes described as model substitution or model dilution. A substitution can change response quality, output formatting, and safety behavior, often without notice to the caller.
With a black-box API, callers cannot inspect the backend deployment. They can only evaluate inputs and outputs. “Dirty token” probing is a low-cost method for remote checks. It cannot prove a model’s identity, but it can produce reviewable evidence to help technical evaluation and compliance audits determine whether further verification is needed.
2. Key Concepts
A dirty token is a text fragment that appears frequently or distinctively in a particular model’s training data. Examples include a standard editorial notice from an encyclopedia platform or historical information about an obsolete release of an open-source project. Here, “dirty” refers to the fragment’s potential to distinguish models, not to harmful content. The term can refer to a text fragment rather than a single tokenizer token.
A behavioral fingerprint is the collection of responses an endpoint produces for the same set of probes. Relevant dimensions include correctness, refusals, off-topic responses, and formatting consistency. One response is not enough to support a conclusion; a combination of probe results is more informative.
3. Build a Probe Set
The quality of the probe set determines the usefulness of the results. Organize probes into three categories, with three to five probes per category.
- Memorized-text probes: Short, fixed passages that appear verbatim in public documentation, such as the opening sentence of an open-source library’s release notes. A model exposed to the passage during training may be able to continue it accurately.
- Obscure-fact probes: Technical historical details known mainly within a small community, such as a programming language draft standard’s identifier and the year it was withdrawn. Answers must be verifiable against public sources.
- Formatting-trace probes: Standard announcements or acknowledgment templates used by particular platforms. These help reveal whether a model reproduces a recognizable style.
Apply three rules when selecting probes:
- Verify every reference answer against its original source. Otherwise, an incorrect answer may become the benchmark.
- Avoid personal information and lengthy copyrighted excerpts. Use short quotations or paraphrases where appropriate.
- Keep only discriminative probes. If all candidate models produce the same result, remove the probe.
Refresh the set regularly. New model versions may have encountered previously useful probes in their training data, reducing their ability to distinguish models. Review the set every one to three months, or immediately when the target model version changes.
4. Run the Tests
Use a consistent prompt template to make outputs from different endpoints comparable:
Read the following text and continue it directly, preserving the original style: '''[Insert probe text here]'''
Keep the following parameter considerations in mind:
- Supported temperature ranges vary by provider. Follow the relevant API documentation rather than assuming every endpoint accepts the same range.
- Setting temperature to
0can reduce randomness, but it does not guarantee identical outputs. Some providers also offer aseedparameter, which likewise does not guarantee reproducibility. - Regardless of parameter settings, repeat each probe three to five times and record the variation across responses.
For every call, record:
- Probe ID
- Advertised model name
- Endpoint URL
- Request timestamp
- Request parameters
- Complete raw output
- Signal label
- Repetition number
Retaining raw outputs allows reviewers to check whether the assigned labels and interpretations were reasonable.
Keep request rates within the provider’s limits. Large bursts of concurrent requests may trigger abuse controls or violate the terms of service.
5. Interpret Unusual Signals
The following table summarizes common signals, possible explanations, and follow-up actions.
| Signal | Possible explanation | Next step |
|---|---|---|
| Refusal or an unexpected safety-policy trigger | Different safety alignment, or filtering added at the gateway | Retest with comparable, uncontroversial text and investigate gateway-level effects |
| Output unrelated to the input | Missing relevant training material, or weaker model capabilities | Run more repetitions and compare results across probes |
| Stock responses | A generic self-description template was triggered | Reword the probe and check whether the prompt format caused the response |
| Accurate continuation with consistent style | The model may have encountered the passage | Compare against baselines; do not treat this alone as identity evidence |
No single signal is conclusive. A refusal may come from content filtering rather than a difference in the underlying model. Interpret results across multiple repetitions and multiple probes.
6. Build a Mapping Table and Assess Model Identity
A mapping table records the typical responses of different model families to each probe. It cannot be supplied directly by this article: callers must build their own baselines using endpoints with known identities.
The example below illustrates the structure and interpretation only. Its values and thresholds require calibration with real samples.
| Model family | Probe category | Expected signal | Illustrative threshold | Confidence caveat |
|---|---|---|---|---|
| Family A | Memorized text | Accurate continuation with consistent style | Accurate in at least two of three repetitions | Different versions within the same family may behave alike |
| Family B | Obscure facts | Factual errors or fabricated details | Errors in at least two of three repetitions | Strongly affected by the training cutoff date |
| Family C | Formatting traces | Refusals or stock responses | Present in at least two of three repetitions | Gateway filtering may cause misclassification |
For each candidate family, calculate a probe match rate: the proportion of observed results that agree with its baseline.
If one family’s match rate is clearly higher than the others—for example, above 80% and separated from competing families—the result may support an assessment of “more likely to belong to this family.” If several families score similarly, report the result as inconclusive.
Keep the wording cautious. Instead of “confirmed to be model X,” write:
More likely to belong to family X, based on Y of Z probes matching the baseline.
Include the sample size, test date, and endpoint information so others can review the assessment.
7. Strengths and Limitations
Strengths
- Typically low API cost per probe: Suitable for batch testing during initial screening. Actual costs depend on pricing and repetition counts.
- Low implementation barrier: No statistical code or access to training data is required. The basic workflow only requires sending HTTP requests and reviewing text.
- Readable evidence: Text-based results are relatively easy to explain to nontechnical stakeholders.
Limitations
- Probe sets have a limited shelf life: Model updates can reduce the ability of older probes to distinguish models.
- Behavior does not prove identity: Similar responses can occur across model families or versions.
- Filtering can distort results: Gateway controls and safety policies can produce signals unrelated to the underlying model.
Treat dirty token probes as preliminary evidence, not definitive identification. Their value comes from verified reference answers, repeated testing, known-model baselines, and conclusions that clearly state the uncertainty.
