GET STARTED · QUICKSTART
Quickstart
Add AntiNude to your iOS or Android app in under 10 minutes. The model runs entirely on-device — no images leave the user's phone.
1. Install
Podfile
1pod 'AntiNude', '~> 1.0.2'
2. Initialize
Configure a Scanner with your API key. Do this once per process.
Swift
1import AntiNude
2
3let scanner = Scanner(key: "ak_live_8f4a…2c1d")
4scanner.threshold = .strict // .strict | .balanced | .lenient
3. Scan an image
Swift
1let result = try await scanner.scan(uiImage)
2
3switch result.verdict {
4case .safe: showImage(uiImage)
5case .unsafe: reportToModeration(result.scores)
6}
⚠ Threshold modes
strict blocks suggestive content too; balanced only nudity and worse; lenient only sexual violence and gore. See Threshold tuning.