Content moderation

alpha

Synchronous moderation for one text block, image, or video. Receive the sexual-safety decision with the full model labels and values.

POST /v1/moderations/models/alphaSynchronousPer-request billing

Quick start

Submit one modality per request and include an idempotency key for retry safety. Text accepts one string of up to 1,024 characters.

curl -X POST "https://api.artany.ai/v1/moderations/models/alpha" \
  -H "Authorization: Bearer $ARTANY_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: moderation-alpha-001" \
  -d '{"modality":"text","text":"Example text"}'

Response

sexual_suggest is block when the relevant sexual-safety value reaches the configured text or visual threshold.

{
  "sexual_suggest": "block",
  "labels": [{ "label": "sexual", "value": 3 }],
  "string_matches": [],
  "billing": { "charged_credits": "1", "idempotent": false }
}

Successful response

FieldMeaning
sexual_suggestThe sexual-safety decision: allow or block. Text, image, and video block when the relevant sexual-safety value reaches the configured threshold.
labelsAll returned model labels. Text uses value; visual uses score, and video can include time.
string_matchesDetected text matches, when available, with their type and character indexes.
billingCredits charged and whether the response was returned from an idempotent replay.

Error response

All error responses use { error: { code, message, request_id, param } }. They do not include sexual_suggest or labels.

HTTPCodeWhen it occurs
429MODERATION_DAILY_LIMITThe daily moderation limit is exhausted. The request is not sent for review and no Credits are charged.
502MODEL_ERRORThe moderation model returned an unsuccessful, malformed, incomplete, or unparseable result. Any charge made for this request is released.
503MODEL_UNAVAILABLEThe moderation model could not be reached or did not respond before the timeout. Any charge made for this request is released.
{
  "error": {
    "code": "MODERATION_DAILY_LIMIT",
    "message": "Daily moderation request limit reached",
    "request_id": "…",
    "param": null
  }
}

Text labels

Text values use ordinal severity scores.

LabelRangeMeaning
sexual0–30 is benign. 1 covers contextual or mild sexual references. 2 indicates sexual intent, nudity, lingerie, or other clearly sexual context. 3 indicates explicit sexual activity, genitalia, or graphic sexual content.
hate0–3Severity of hostile, discriminatory, demeaning, or hateful language directed at a protected group or person.
violence0–3Severity of violent intent, threats, instructions, depictions of injury, or graphic harm.
bullying0–3Severity of targeted harassment, intimidation, insults, humiliation, or abusive conduct toward a person or group.
drugs0–3Severity of drug-related language, including controlled substances, recreational use, or instructions that facilitate use.
child_exploitation0 or 3Signals sexual exploitation, grooming, or sexualized content involving a minor. A positive result is emitted at the highest severity.
self_harm0 or 3Signals promotion, planning, instruction, encouragement, or depiction of self-harm or suicide. A positive result is emitted at the highest severity.
spam / promotions / redirection0 or 3Signals unsolicited promotion, deceptive offers, repetitive spam, or attempts to redirect a person to another destination.

Visual labels

Image and video values are confidence scores from 0 to 1. Video labels may include a frame timestamp; labels prefixed with no_ are negative classes.

NSFW and sexual

LabelMeaning
general_nsfwNudity, genitalia, bare buttocks, sex acts, sexual objects, or strongly implied explicit sexual imagery; also applies to relevant drawings and diagrams.
general_suggestiveNon-explicit but sexually suggestive imagery, such as underwear, swimwear, shirtless men, covered intimate areas, tongue kissing, or sexual touching over clothing.
general_not_nsfw_not_suggestiveNo explicit or suggestive sexual imagery; this is the negative class for the umbrella NSFW head.
yes_realistic_nsfwPhotographic or photorealistic non-artistic nudity or sexual activity; separates it from classical art, sculptures, and educational diagrams.
yes_sexual_activityIntercourse, masturbation, oral sex, genital touching, sexual-fluid imagery, or sex-toy use.
yes_sexual_intentSexualized posing or intent without necessarily depicting an explicit sex act.
yes_female_nudityFemale nudity.
yes_male_nudityMale nudity.
yes_genitalsVisible genitalia.
yes_breastVisible breasts.
yes_buttVisible buttocks.
yes_sex_toySex toy.
yes_undressedSubject is visibly undressed.
yes_female_underwearFemale underwear.
yes_male_underwearMale underwear.
yes_braBra.
yes_sports_braSports bra.
yes_pantiesPanties.
yes_cleavageCleavage.
yes_bulgeVisible clothing bulge.
yes_female_swimwearFemale swimwear.
yes_male_shirtlessShirtless male.
yes_sportswear_bottomsSportswear bottoms.
yes_negligeeNegligee.
yes_miniskirtMiniskirt.
yes_bodysuitBodysuit.
kissingKissing.
lickingLicking.

Weapons and violence

LabelMeaning
animated_gunAnimated, illustrated, game, diagram, or photorealistic-art depiction of a firearm.
gun_in_handPhotograph of a person holding, touching, or handling a firearm, including a holstered or mounted gun.
gun_not_in_handPhotograph of a firearm that is displayed, mounted, holstered, slung, or otherwise not being handled.
culinary_knife_in_handKnife or blade held or used for food preparation, eating, butchery, or agricultural harvesting.
culinary_knife_not_in_handKnife or blade present but not handled in a culinary or agricultural setting.
knife_in_handNon-culinary knife or blade held or handled, including machetes, box cutters, daggers, swords, and exposed razor blades.
knife_not_in_handNon-culinary knife or blade visible but not handled, such as a displayed, stored, or lodged blade.
yes_fightPhysical fight.
a_little_bloodyMinor blood, small cuts or scrapes, treated/healed serious injuries, stitches, or scar tissue.
other_bloodAnimal blood, medical/laboratory blood, or blood depicted in art, animation, or illustration.
very_bloodySubstantial blood, active major bleeding, deep cuts, gunshot/stab wounds, or graphic gore.
animated_corpseAnimated corpse.
human_corpseHuman corpse.
yes_animal_abusePhotographic animal abuse, torture, mistreatment, or graphic injury.

Drugs and controlled substances

LabelMeaning
yes_pillsClearly visible loose, stored, crushed, or snorted pills, powders, or crystalline drugs.
yes_smokingTobacco, marijuana, vapes, joints, bongs, hookahs, grinders, or related smoking paraphernalia.
illicit_injectablesNeedles or syringes with contextual signs of non-medical/recreational use, such as makeshift tourniquets or drug paraphernalia.
medical_injectablesNeedles or injections in a medical/veterinary context, or with no indicators of illicit use.
yes_marijuanaClearly visible cannabis, plants, joints, marijuana paraphernalia, edibles, or cannabis graphics.
animated_alcoholAnimated or illustrated alcohol or alcohol use.
yes_alcoholAlcoholic beverage is present, without clear consumption.
yes_drinking_alcoholAlcohol consumption is visible or strongly implied, such as a drink held at a person's mouth.

Hate and offensive imagery

LabelMeaning
yes_naziNazi symbols, insignia, flags, uniforms, salutes, or other imagery associated with Nazi ideology.
yes_kkkKu Klux Klan robes, hoods, symbols, gatherings, or other identifiable KKK imagery.
yes_terroristSymbols, insignia, flags, uniforms, propaganda, or imagery identifying a terrorist organization or act.
yes_confederateConfederate flags, symbols, uniforms, or other explicitly Confederate imagery.
yes_middle_fingerA raised middle-finger gesture, including a photograph, illustration, or animated depiction.

Self-harm and child safety

LabelMeaning
hangingA person being hanged, an attempted hanging, or an apparent hanging-related death; excludes an empty noose without a person.
nooseA noose, gallows rope, or hanging loop visible without a person being hanged.
yes_self_harmVisible self-inflicted injury, self-harm behavior, suicide attempt, or materials presented in a self-harm context.
yes_emaciated_bodyA severely underweight or emaciated human body, where ribs, bones, or extreme thinness are visibly prominent.
yes_child_presentA child or apparent minor is visible; this is an attribute label and does not alone indicate exploitative content.

Attributes and embedded content

LabelMeaning
textReadable printed, handwritten, or digital text appears anywhere in the media, including signs, documents, captions, or screens.
yes_overlay_textText has been overlaid onto the image or video as a title, caption, subtitle, watermark, meme text, or graphic treatment.
animatedThe media is fully animated, illustrated, rendered, or game-like rather than a natural photograph or video.
hybridThe media combines animated or illustrated elements with natural photographic or video elements.
naturalThe media is primarily a natural photograph or live-action video rather than an illustration or animation.
yes_drawingA drawing, sketch, painting, cartoon, or other hand-made/illustrated visual is present.
yes_qr_codeA machine-readable QR code is visible, including partial or stylized QR codes.
yes_religious_iconA recognizable religious symbol, icon, object, or place of worship is visible.
yes_gamblingGambling activity, betting interfaces, casino games, lottery materials, cards, slots, or other gambling-related imagery is visible.

Animal sexual content

LabelMeaning
animal_genitalia_and_humanAnimal genitalia is visible together with a human in the same image or frame; use for potential human-animal sexual-content context.
animal_genitalia_onlyAnimal genitalia is visible without a human in the same image or frame.
animated_animal_genitaliaAn animated, illustrated, or rendered animal genitalia depiction is visible.