Is It AI?
Disclaimer: our model is based on DINOv3, and the DINOv3 License applies to it. It is a fine-tuned version of Meta's DINOv3 ViT-S/16. By downloading or using the model weights you accept the DINOv3 License. This project is non-commercial.
A pocket-sized AI-image detector that runs in your browser. No cloud, no uploads.
- 99 % of 843 fully generated GPT Image 2.5 pictures detected, in four collections never trained on (lowest: 90 %)
- Still 99 % on those after JPEG quality 60
- Nano Banana Pro 93 β 98 %; Midjourney, Qwen Image, FLUX 3, Grok Imagine and more at 100 % on small tests
- 0 false alarms in 300 WhatsApp photos from unseen phones
- 22.6 M parameters, 11.2 GFLOPs per view, about 1 s per picture on a laptop CPU
Browser extension, training code and full documentation: github.com/oscaritocyber/is-it-ai
Use
pip install onnxruntime numpy pillow opencv-python
hf download oscaritocyber/is-it-ai --local-dir is-it-ai
cd is-it-ai
python inference.py picture.jpg
from inference import IsItAI
result = IsItAI()('picture.jpg')
# {'ai': True, 'by_model': True, 'by_peak': False, 'score': 4.2, 'peak': 1.3, 'views': 6}
score is a raw logit, not a probability.
Files
| File | Content |
|---|---|
model.onnx |
uint8 views (n, 256, 256, 3) β logits (n,); normalisation is inside the graph |
model.safetensors |
PyTorch weights for Detector in training/model.py on GitHub |
detector.json |
Decision thresholds |
views.py |
The exact views the model expects |
spectral.py |
The 2-pixel periodic-trace test |
inference.py |
All of it together |
Model
DINOv3 ViT-S/16, fine-tuned end to end. The class token of blocks 3, 6, 9 and 12 and the mean patch token (1920 values) feed a two-layer head (512 units). A picture is scored by the mean logit of up to 7 views: up to 3 whole squares resized to 256 px and 4 native-resolution crops. It is flagged when that mean reaches the threshold or the 2-pixel trace is strong.
Results
Percentage of pictures flagged, thresholds fixed beforehand.
| AI pictures, never trained on | n | Untouched | JPEG q60 | Short side 512 |
|---|---|---|---|---|
| GPT Image 2.5 (bigr.cz) | 300 | 99.7 | 99.3 | 99.3 |
| GPT Image 2.5 (WonderLines) | 400 | 100 | 100 | 100 |
| GPT Image 2.5 (SynthID set) | 20 | 90.0 | 90.0 | 90.0 |
| GPT Image 2.5 generated (MNW) | 123 | 96.7 | 96.7 | 94.3 |
| GPT Image 2.5 inpainted (MNW) | 117 | 76.9 | 29.1 | 34.2 |
| OpenFake Reddit | 387 | 95.3 | 94.3 | 96.9 |
| WasItAIGenerated, originals | 128 | 85.9 | 85.9 | 85.9 |
| Real pictures wrongly flagged | n | Untouched | JPEG q60 | Short side 512 |
|---|---|---|---|---|
| Phone photos | 500 | 0.2 | 0.2 | 0.4 |
| WhatsApp, unseen phones | 300 | 0.0 | 0.0 | 0.3 |
| Web photos | 300 | 1.7 | 3.0 | 2.3 |
| WasItAIGenerated, originals | 240 | 5.0 | 2.5 | 5.4 |
| 294 | 7.5 | 4.4 | 11.6 |
All real pictures together: 2.56 % false alarms. MNW and WasItAIGenerated figures are for the half not used to set thresholds. No comparison with other detectors has been made.
Not only GPT Image: Nano Banana and the rest
Percentage detected on the WasItAIGenerated frontier benchmark, never trained on. Each picture was tested as the original and as three social-media copies. Listed: the generators it handles best. These are small samples (3 to 14 pictures per generator): read them as a hint, not a measurement.
| Generator | Pictures | Untouched | JPEG q60 | Short side 512 |
|---|---|---|---|---|
| Nano Banana Pro | 14 | 92.9 | 87.5 | 92.9 |
| Nano Banana 2.1 | 7 | 96.4 | 92.9 | 100 |
| GPT Image 2 | 4 | 100 | 87.5 | 100 |
| Qwen Image 3 | 9 | 100 | 100 | 100 |
| Qwen Image 2512 | 5 | 100 | 85 | 95 |
| FLUX 3 | 6 | 100 | 100 | 83.3 |
| HiDream O1 | 9 | 100 | 97.2 | 100 |
| Krea 2 Turbo | 8 | 100 | 96.9 | 100 |
| Grok Imagine 2.0 | 7 | 100 | 82.1 | 92.9 |
| MAI Image 2.5 | 6 | 100 | 100 | 100 |
| Kling Image v3 | 3 | 100 | 100 | 100 |
| Seedream 5 Pro | 6 | 83.3 | 83.3 | 83.3 |
| Z-Image Turbo | 6 | 83.3 | 83.3 | 87.5 |
| Meta Muse | 5 | 80 | 80 | 80 |
Larger samples, but from the same sources as the training data (pictures held out, so an easier test):
| Generator | Pictures | Untouched | JPEG q60 | Short side 512 |
|---|---|---|---|---|
| GPT Image 2 | 109 | 99.1 | 99.1 | 99.1 |
| Nano Banana Pro | 87 | 97.7 | 97.7 | 97.7 |
| Midjourney | 29 | 100 | 100 | 100 |
| Qwen Image 2.1 | 27 | 100 | 100 | 100 |
| FLUX 2 | 21 | 100 | 100 | 100 |
Training data
Over 130,000 real pictures and 115,809 AI pictures (161 generator labels), with on-the-fly resizing, cropping, recompression, blur and sharpening. The training data includes GPT Image 2.5 and 2.6 renders; the GPT Image collections in the table come from other publishers and were never trained on. Sources and their terms: docs/DATA.md.
Limitations and intended use
- Meant as a hint for personal, non-commercial and research use.
- Not evidence. Do not use it to accuse people, moderate automatically or make decisions about anyone.
- Misses many inpainted or partially edited pictures, especially after recompression.
- "No signs of AI" does not mean authentic.
- Some generators are caught less often than the ones listed, and new ones may go undetected.
Licence
Our model is based on DINOv3 and the DINOv3 License applies to it. Use of the model is non-commercial: part of its training data is licensed for non-commercial use. The code is Apache 2.0.
Built with DINOv3.
Model tree for oscaritocyber/is-it-ai
Base model
timm/vit_small_patch16_dinov3.lvd1689m