Rate content NSFW level
Rate text, images, and/or one video on BudgetPixel’s 4-level NSFW scale — the same classifier and scale the platform itself moderates with. Synchronous: the response carries the verdict.
Levels:
0(sfw) — safe for work. Non-sexual violence, action, and blood stay here.1(teen) — mildly suggestive (swimwear/underwear in a non-sexual context).2(mature) — partial nudity or overtly sexual posing, no genitals.3(x-rated) — explicit sexual content, visible genitals, or extreme gore.
Inputs (at least one required): prompt (text), images (up to 10, max 10 MB
each), video (one, max 100 MB and 5 minutes — 5 frames are sampled). Media
values accept a public URL, an uploaded-file URL from
POST /v1/uploads, a data URI, or raw
base64. Everything is downscaled before classification; the rating is for the
submission as a whole (highest applicable level), with one overall reason.
Pricing: 2 credits base + 3 per image + 15 for a video. Estimate via
POST /v1/cost with
{"model": "moderation-nsfw", "images": 2, "video": true}. Charged on success
only — a classifier failure costs nothing.
Submitted media is retained privately for ~1 day (for abuse review), then deleted automatically.
Authorizations
API key as a bearer token: Authorization: Bearer bpx_live_xxx
Body
Response
The rating.
Classifier confidence, 0-1.
Moderation request id (audit reference).
sfw, teen, mature, x-rated Overall NSFW level of the submission.
0, 1, 2, 3 Short overall explanation.