# Magika

> Magika (google/magika) is Google’s AI-powered file content-type detector: it classifies files from byte content (not just extensions / magic bytes), locally, in milliseconds on CPU. First-party README: ~100M-sample training, 200+ content types, ~99% avg precision/recall on their test set; used at scale for routing Gmail/Drive/Safe Browsing samples to scanners; also integrated with VirusTotal and abuse.ch (README claims).

- Slug: magika
- Record: cmp_magika
- Kind: resource
- Functions: test, route
- Score: 9
- Observed sample: This component is not in Leyline's observed sample.

JSON: https://staging.leyline.ahensya.com/api/v1/components/magika
