Products / Nosmai Moderation

Nosmai Moderation

On-device moderation for images, video, text and the live camera. Tunable thresholds, no cloud round-trip.

Overview

Moderation runs entirely on the device — frames and messages never leave the phone. One license key unlocks four surfaces:

SurfaceWhat it doesCall
ImageModerate a single photoanalyzeImage
VideoSample + aggregate a recorded clipanalyzeVideo
TextModerate a chat message / commentmoderateText
Live cameraReal-time per-frame moderationstartStream + pushFrame

What it detects

Visual — objects (NosmaiCategory): weapon, drug, cigarette, alcohol. Each frame returns the best confidence per class; a class is flagged when it meets its threshold.

Visual — NSFW (NosmaiNsfwVerdict): a whole-image verdict —

  • safe — clean.
  • warn — suggestive / swimwear (advisory; does not flag the frame on its own).
  • block — explicit (makes the frame unsafe).

Text (NosmaiTextCategory): profanity, toxic, hate, harassment, threat (plus safe). A two-layer pipeline — a keyword blocklist then an AI classifier.

Result shape

Every image / live result is a NosmaiResult:

FieldTypeDescription
isUnsafeboolTrue if any object is flagged or NSFW is block
detectionslistFlagged objects — { category, confidence }
nsfwenumsafe · warn · block
nsfwScoresobjectsafe, sexy, explicit (0–1)
rawScoresobjectBest object score per class (debug / tuning)

moderateText returns a NosmaiTextResult{ blocked, layer, category, score, matchedWord }. analyzeVideo returns a NosmaiVideoResult{ isUnsafe, categories, flags[], framesAnalyzed, nsfw }.

Tunable thresholds

Every object class and NSFW bar is adjustable at runtime — lower is stricter. Defaults are tuned for a balance of recall and false positives.

setThreshold(weapon, 0.70)        // object class bar
setNsfwThreshold(explicit, 0.45)  // NSFW BLOCK bar
setNsfwThreshold(sexy, 0.55)      // NSFW WARN bar

TIP

Because moderation runs on-device, there is no per-call cloud bill and content never leaves the user — solving latency and compliance at once.

Platform guides

Pick your platform for install + full usage (image, video, text, live):

On-device & licensing

The license key is verified online on first launch (so the first launch needs connectivity), then cached for 24h with a further 24h offline grace — after that the app runs offline within the grace window. All inference is hardware-accelerated on-device — see your platform guide for requirements.

Nosmai

We make advanced camera and AI technology accessible to every developer. By packaging hard problems into simple

developers
legal
newsletter

Product updates and release notes. No spam.

© 2026 nosmai, inc · all rights reserved