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
| Field | Meaning |
|---|---|
| sexual_suggest | The sexual-safety decision: allow or block. Text, image, and video block when the relevant sexual-safety value reaches the configured threshold. |
| labels | All returned model labels. Text uses value; visual uses score, and video can include time. |
| string_matches | Detected text matches, when available, with their type and character indexes. |
| billing | Credits 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.
| HTTP | Code | When it occurs |
|---|---|---|
| 429 | MODERATION_DAILY_LIMIT | The daily moderation limit is exhausted. The request is not sent for review and no Credits are charged. |
| 502 | MODEL_ERROR | The moderation model returned an unsuccessful, malformed, incomplete, or unparseable result. Any charge made for this request is released. |
| 503 | MODEL_UNAVAILABLE | The 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.
| Label | Range | Meaning |
|---|---|---|
| sexual | 0–3 | 0 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. |
| hate | 0–3 | Severity of hostile, discriminatory, demeaning, or hateful language directed at a protected group or person. |
| violence | 0–3 | Severity of violent intent, threats, instructions, depictions of injury, or graphic harm. |
| bullying | 0–3 | Severity of targeted harassment, intimidation, insults, humiliation, or abusive conduct toward a person or group. |
| drugs | 0–3 | Severity of drug-related language, including controlled substances, recreational use, or instructions that facilitate use. |
| child_exploitation | 0 or 3 | Signals sexual exploitation, grooming, or sexualized content involving a minor. A positive result is emitted at the highest severity. |
| self_harm | 0 or 3 | Signals promotion, planning, instruction, encouragement, or depiction of self-harm or suicide. A positive result is emitted at the highest severity. |
| spam / promotions / redirection | 0 or 3 | Signals 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
| Label | Meaning |
|---|---|
| general_nsfw | Nudity, genitalia, bare buttocks, sex acts, sexual objects, or strongly implied explicit sexual imagery; also applies to relevant drawings and diagrams. |
| general_suggestive | Non-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_suggestive | No explicit or suggestive sexual imagery; this is the negative class for the umbrella NSFW head. |
| yes_realistic_nsfw | Photographic or photorealistic non-artistic nudity or sexual activity; separates it from classical art, sculptures, and educational diagrams. |
| yes_sexual_activity | Intercourse, masturbation, oral sex, genital touching, sexual-fluid imagery, or sex-toy use. |
| yes_sexual_intent | Sexualized posing or intent without necessarily depicting an explicit sex act. |
| yes_female_nudity | Female nudity. |
| yes_male_nudity | Male nudity. |
| yes_genitals | Visible genitalia. |
| yes_breast | Visible breasts. |
| yes_butt | Visible buttocks. |
| yes_sex_toy | Sex toy. |
| yes_undressed | Subject is visibly undressed. |
| yes_female_underwear | Female underwear. |
| yes_male_underwear | Male underwear. |
| yes_bra | Bra. |
| yes_sports_bra | Sports bra. |
| yes_panties | Panties. |
| yes_cleavage | Cleavage. |
| yes_bulge | Visible clothing bulge. |
| yes_female_swimwear | Female swimwear. |
| yes_male_shirtless | Shirtless male. |
| yes_sportswear_bottoms | Sportswear bottoms. |
| yes_negligee | Negligee. |
| yes_miniskirt | Miniskirt. |
| yes_bodysuit | Bodysuit. |
| kissing | Kissing. |
| licking | Licking. |
Weapons and violence
| Label | Meaning |
|---|---|
| animated_gun | Animated, illustrated, game, diagram, or photorealistic-art depiction of a firearm. |
| gun_in_hand | Photograph of a person holding, touching, or handling a firearm, including a holstered or mounted gun. |
| gun_not_in_hand | Photograph of a firearm that is displayed, mounted, holstered, slung, or otherwise not being handled. |
| culinary_knife_in_hand | Knife or blade held or used for food preparation, eating, butchery, or agricultural harvesting. |
| culinary_knife_not_in_hand | Knife or blade present but not handled in a culinary or agricultural setting. |
| knife_in_hand | Non-culinary knife or blade held or handled, including machetes, box cutters, daggers, swords, and exposed razor blades. |
| knife_not_in_hand | Non-culinary knife or blade visible but not handled, such as a displayed, stored, or lodged blade. |
| yes_fight | Physical fight. |
| a_little_bloody | Minor blood, small cuts or scrapes, treated/healed serious injuries, stitches, or scar tissue. |
| other_blood | Animal blood, medical/laboratory blood, or blood depicted in art, animation, or illustration. |
| very_bloody | Substantial blood, active major bleeding, deep cuts, gunshot/stab wounds, or graphic gore. |
| animated_corpse | Animated corpse. |
| human_corpse | Human corpse. |
| yes_animal_abuse | Photographic animal abuse, torture, mistreatment, or graphic injury. |
Drugs and controlled substances
| Label | Meaning |
|---|---|
| yes_pills | Clearly visible loose, stored, crushed, or snorted pills, powders, or crystalline drugs. |
| yes_smoking | Tobacco, marijuana, vapes, joints, bongs, hookahs, grinders, or related smoking paraphernalia. |
| illicit_injectables | Needles or syringes with contextual signs of non-medical/recreational use, such as makeshift tourniquets or drug paraphernalia. |
| medical_injectables | Needles or injections in a medical/veterinary context, or with no indicators of illicit use. |
| yes_marijuana | Clearly visible cannabis, plants, joints, marijuana paraphernalia, edibles, or cannabis graphics. |
| animated_alcohol | Animated or illustrated alcohol or alcohol use. |
| yes_alcohol | Alcoholic beverage is present, without clear consumption. |
| yes_drinking_alcohol | Alcohol consumption is visible or strongly implied, such as a drink held at a person's mouth. |
Hate and offensive imagery
| Label | Meaning |
|---|---|
| yes_nazi | Nazi symbols, insignia, flags, uniforms, salutes, or other imagery associated with Nazi ideology. |
| yes_kkk | Ku Klux Klan robes, hoods, symbols, gatherings, or other identifiable KKK imagery. |
| yes_terrorist | Symbols, insignia, flags, uniforms, propaganda, or imagery identifying a terrorist organization or act. |
| yes_confederate | Confederate flags, symbols, uniforms, or other explicitly Confederate imagery. |
| yes_middle_finger | A raised middle-finger gesture, including a photograph, illustration, or animated depiction. |
Self-harm and child safety
| Label | Meaning |
|---|---|
| hanging | A person being hanged, an attempted hanging, or an apparent hanging-related death; excludes an empty noose without a person. |
| noose | A noose, gallows rope, or hanging loop visible without a person being hanged. |
| yes_self_harm | Visible self-inflicted injury, self-harm behavior, suicide attempt, or materials presented in a self-harm context. |
| yes_emaciated_body | A severely underweight or emaciated human body, where ribs, bones, or extreme thinness are visibly prominent. |
| yes_child_present | A child or apparent minor is visible; this is an attribute label and does not alone indicate exploitative content. |
Attributes and embedded content
| Label | Meaning |
|---|---|
| text | Readable printed, handwritten, or digital text appears anywhere in the media, including signs, documents, captions, or screens. |
| yes_overlay_text | Text has been overlaid onto the image or video as a title, caption, subtitle, watermark, meme text, or graphic treatment. |
| animated | The media is fully animated, illustrated, rendered, or game-like rather than a natural photograph or video. |
| hybrid | The media combines animated or illustrated elements with natural photographic or video elements. |
| natural | The media is primarily a natural photograph or live-action video rather than an illustration or animation. |
| yes_drawing | A drawing, sketch, painting, cartoon, or other hand-made/illustrated visual is present. |
| yes_qr_code | A machine-readable QR code is visible, including partial or stylized QR codes. |
| yes_religious_icon | A recognizable religious symbol, icon, object, or place of worship is visible. |
| yes_gambling | Gambling activity, betting interfaces, casino games, lottery materials, cards, slots, or other gambling-related imagery is visible. |
Animal sexual content
| Label | Meaning |
|---|---|
| animal_genitalia_and_human | Animal genitalia is visible together with a human in the same image or frame; use for potential human-animal sexual-content context. |
| animal_genitalia_only | Animal genitalia is visible without a human in the same image or frame. |
| animated_animal_genitalia | An animated, illustrated, or rendered animal genitalia depiction is visible. |