# Galvanize models

> Galvanize is a family of open prompt-injection classifiers under Apache-2.0: Galvanize 3.1 is the current model, with Galvanize 3, Galvanize 2 and Galvanize-60M as earlier models that remain available.

Galvanize is a family of prompt-injection classifiers: models that score a piece of text for text that tries to change what an AI model or agent does. All weights are open under Apache-2.0.

## The models

- [Galvanize 3.1](https://anghabar.com/zn/models/galvanize-3-1.md) (Model, current, Apache-2.0): The default detector of the zn API. About 140M parameters, up to 512 tokens, threshold 0.9017.
- [Galvanize 3](https://anghabar.com/zn/models/galvanize-3.md) (Model, earlier, Apache-2.0): The model Galvanize 3.1 is further trained from. About 140M parameters, threshold 0.9802.
- [Galvanize 2](https://anghabar.com/zn/models/galvanize-2.md) (Model, earlier, Apache-2.0): It served the zn API from 12 to 23 October 2026. About 141M parameters.
- [Galvanize-60M](https://anghabar.com/zn/models/galvanize-60m.md) (Model, small, Apache-2.0): About 60M parameters, published with an INT8 ONNX build.

## Galvanize 3.1 and Galvanize 3

Figures from the Galvanize 3.1 model card, quoted as published. Both models ran with the same code on the same texts. The multilingual test set is private and was used during model selection, so treat it as a development benchmark, not a clean final exam.

|  | Galvanize 3.1 (current) | Galvanize 3 (earlier) |
| --- | ---: | ---: |
| Attacks caught | 96.4% | 89.6% |
| Short harmless texts flagged | 1.9% | 0.6% |
| Long harmless documents flagged (658 texts, first 512 tokens) | 1.2% | 2.9% |
| Multilingual attacks caught at 1% false alarms | 78.8% | 60.6% |
| PromptShield, attacks caught at 1% false alarms | 31.9% | 35.4% |

Galvanize 3.1 catches more attacks and flags more short harmless texts. On PromptShield at a strict 1% false-alarm budget it is worse than Galvanize 3. If a false alarm costs you more than a missed attack, choose a higher threshold on your own data, or stay on Galvanize 3.

## How they relate

![Diagram. Galvanize 3.1 is further trained from Galvanize 3, which is fine-tuned from Horizon Labs' prompt-injection-guard-small, which is built on mmBERT-small.](https://anghabar.com/diagrams/galvanize-lineage.svg)

Galvanize 3.1 is further trained from Galvanize 3, which is fine-tuned from Horizon Labs' prompt-injection-guard-small. Thank you to Horizon Labs for releasing it openly.

## Limits

A classifier can be evaded. Use these models as one layer among several, not as the only control in front of an irreversible action. Figures and limits are on each model card.
