Desert Ant Labs

Smarter social feeds, on device.

Flag nudity before a photo is uploaded, catch abusive comments before they're posted, sort every post into a feed and help users share their best photos, all on device.

AI models built for social apps

Nothing leaves the device

Every model runs on the user's phone, tablet or laptop. Photos are checked before they're uploaded and comments before they're posted, so a flagged photo never reaches a server.

No per-call cost

Check every photo and comment, sort every post and caption every video with no bill per call and no infrastructure to run. A smarter feed doesn't mean a bigger cloud bill.

In the right feed from the first minute

Gist sorts a post into its categories as it's published, so it can show up in the right feeds and searches before anyone has liked it. Gist also captures what each creator posts about most, so the app can suggest the right accounts.

Examples

Each example replays real output from a model. Open a model page for the full details, and try Gist on any post.

Eye · Image classification · Beta

Pick the cover photo for a post

Eye scores each photo as it's added and crops it to fit the feed. The best image becomes the cover, and a blurry shot prompts a retake.

5.5msPer photoNeural Engine, Mac with an Apple M6
558Scenes
48MBOn deviceApple; 64MB on Android and the web
Eye

Moderator · Content moderation

Flag nudity before a photo is posted

Moderator checks each photo on the poster's phone as it's added, so a flagged nude is never uploaded to the feed. Send flagged photos to a person for review before blocking an account.

87.8%Nudity caught
93.7%Safe photos passed
9.7MBOn deviceApple; 9.2MB on Android and the web
Moderator

Face · Face matching

Suggest who to tag in a photo

Face finds the faces in a new photo and suggests friends the poster has tagged before. Every face is matched on the phone, never uploaded.

220msPer photoon an Android phone
1 in 1,000False matchespairs of different people, at the recommended cutoff
26MBOn deviceApple; 52MB on Android and the web
Face

Gist · Content categorization

Sort every post for the feed and search

Gist sorts a caption into two or three of 36 categories, in 101 languages, as the post is published. Use the categories for topic feeds, search and suggested accounts.

91%Right category in the top 3572 real posts, labeled by people
101Languages
74MBOn deviceor 15MB English-only
Gist

Voz · Speech recognition

Caption a video as it's posted

Voz transcribes the speech in a video with a time on every word, so the captions play in the feed with the sound off. Voz covers 25 European languages, so pair it with Ear to identify the language first.

2s10 minutes of audioiPhone 17 Pro
25LanguagesEuropean
337MBOn diskApple, downloaded on first use
Voz

Clips · Clip selection

Turn a long video into short clips

Clips finds the best moments in a long podcast or interview and ranks them. Offer creators top edits as short clips. Runs on Apple platforms, Linux and Windows, not yet on Android or the web.

9.2s25-minute videoiPhone 17 Pro
12Clipsfrom a 25-minute video
100Languages
Clips

Toxic · Hate speech triage · Beta

Catch harmful comments before they're posted

Toxic scores each comment for hate, abuse and threats as it's written, in 35 languages. When a score is high, suggest a rewrite, hide the comment, or hold it for review. Toxic is a triage aid, so send what it flags to a person, not straight to removal.

35Languages
3Signalshateful, abusive, threatening
102MBOn deviceApple; 103MB on Android and the web
Toxic

Emo · Emoji suggestions

Emoji that keep up with every keystroke

Emo suggests emoji that match a caption or comment as it's typed: 🐕 for a new puppy, ⚽ for a goal in Spanish, 💼 for a new job in French.

<2msPer suggestion
5MBOn deviceApple; 11MB on Android and the web
22Languages
Emo

Tongue · Language identification

Offer a translation from the first few words

Tongue names the language of a post from a few words, so a Translate button shows up only on the posts that need one. The translation itself comes from the app's own translation service.

84Languages
2MBOn deviceinside the package, nothing to download
0.933FLORES-200, 3 words0.887 for a 293MB detector
Tongue

Get started

Install only the models the app uses, from one SDK, in Swift, Kotlin or JavaScript. The example sorts a post into categories with Gist, and checks each comment with Toxic before it's posted.

iOS, macOS, Linux, Windows

Install
// Swift Package Manager
.package(url: "https://github.com/Desert-Ant-Labs/desert-ant-core", from: "6.0.0")
// target dependencies
.product(name: "Gist", package: "desert-ant-core")
.product(name: "Toxic", package: "desert-ant-core")
Example - Swift
import Gist
import Toxic

let gist = Gist()
let toxic = Toxic()

// when a post is published
let topics = try await gist.classify(caption)
addToFeeds(post, topics.map(\.slug))

// before a comment is posted
let check = try await toxic.analyze(comment)
if check.isToxic { askToRewrite(check.content) }

Android

Install
// build.gradle.kts (Maven Central)
implementation("ai.desertant:gist:6.0.0")
implementation("ai.desertant:toxic:6.0.0")
Example - Kotlin
import ai.desertant.gist.Gist
import ai.desertant.toxic.Toxic

val gist = Gist(context)
val toxic = Toxic(context)

// when a post is published
val topics = gist.classify(caption)
addToFeeds(post, topics.map { it.slug })

// before a comment is posted
val check = toxic.analyze(comment)
if (check.isToxic) askToRewrite(check.content)

Web, Node.js

Install
npm i @desert-ant-labs/gist @desert-ant-labs/toxic @litertjs/core
Example - TypeScript
import { Gist } from "@desert-ant-labs/gist";
import { Toxic } from "@desert-ant-labs/toxic";

const gist = await Gist.load();
const toxic = await Toxic.load();

// when a post is published
const topics = await gist.classify(caption);
addToFeeds(post, topics.map((t) => t.slug));

// before a comment is posted
const check = await toxic.analyze(comment);
if (check.isToxic) askToRewrite(check.content);

Building a social app?

Tell us what you're building and who posts in it, and we'll help pick the models and plan the integration.