Cloudmersive Nsfw API

Nsfw operations of the Cloudmersive Image Recognition and Processing API — 4 operation(s) served from https://api.cloudmersive.com and authenticated with the Apikey header. One Cloudmersive API key grants access to every API in the portfolio.

Operations 4

POST /image/nsfw/classify Not safe for work (NSFW) content classification for Images #
POST /image/nsfw/classify/advanced Advanced content moderation and not safe for work (NSFW) content classification… #
POST /image/nsfw/classify/document Not safe for work (NSFW) content classification for Documents #
POST /image/nsfw/classify/video Not safe for work (NSFW) content classification for Video #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cloudmersive:cloudmersive-nsfw-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cloudmersive-nsfw-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: v1
  title: imageapi Nsfw API
  description: Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
servers:
- url: http://localhost
tags:
- name: Nsfw
paths:
  /image/nsfw/classify:
    post:
      tags:
      - Nsfw
      summary: Not safe for work (NSFW) content classification for Images
      description: Classify an image into Not Safe For Work (NSFW)/Pornographic/Nudity/Racy content and Safe Content. Helpful for filtering out unsafe content when processing user images. Input image should be JPG, PNG or GIF. Consumes 20 API calls.
      operationId: Nsfw_Classify
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NsfwResult'
            text/json:
              schema:
                $ref: '#/components/schemas/NsfwResult'
            application/xml:
              schema:
                $ref: '#/components/schemas/NsfwResult'
            text/xml:
              schema:
                $ref: '#/components/schemas/NsfwResult'
      security:
      - Apikey: []
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                imageFile:
                  type: string
                  description: Image file to perform the operation on.  Common file formats such as PNG, JPEG are supported.
                  format: binary
              required:
              - imageFile
  /image/nsfw/classify/advanced:
    post:
      tags:
      - Nsfw
      summary: Advanced content moderation and not safe for work (NSFW) content classification…
      description: Uses advanced AI to classify an image into Not Safe For Work (NSFW) or not and determine if it contains nudity, graphic violence, non-graphic violence, self-harm, hate, potential illegal activity, medical imagery, or profanity. Helpful for filtering out unsafe content when processing user images. Input image should be JPG, PNG. Consumes 100 API calls. Managed Instance or Private Cloud deployments require a GPU.
      operationId: Nsfw_ClassifyAdvanced
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NsfwAdvancedResult'
            text/json:
              schema:
                $ref: '#/components/schemas/NsfwAdvancedResult'
            application/xml:
              schema:
                $ref: '#/components/schemas/NsfwAdvancedResult'
            text/xml:
              schema:
                $ref: '#/components/schemas/NsfwAdvancedResult'
      security:
      - Apikey: []
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                imageFile:
                  type: string
                  description: Image file to perform the operation on.  Common file formats such as PNG, JPEG are supported.
                  format: binary
              required:
              - imageFile
  /image/nsfw/classify/document:
    post:
      tags:
      - Nsfw
      summary: Not safe for work (NSFW) content classification for Documents
      description: Classify a document (PDF, DOCX, DOC, XLSX, XLS, PPTX, PPT) into Not Safe For Work (NSFW)/Pornographic/Nudity/Racy content and Safe Content. Helpful for filtering out unsafe content when processing user images. Consumes 20 API calls per image.
      operationId: Nsfw_ClassifyDocument
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NsfwResult'
            text/json:
              schema:
                $ref: '#/components/schemas/NsfwResult'
            application/xml:
              schema:
                $ref: '#/components/schemas/NsfwResult'
            text/xml:
              schema:
                $ref: '#/components/schemas/NsfwResult'
      security:
      - Apikey: []
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                imageFile:
                  type: string
                  description: Image file to perform the operation on.  Common file formats such as PNG, JPEG are supported.
                  format: binary
              required:
              - imageFile
  /image/nsfw/classify/video:
    post:
      tags:
      - Nsfw
      summary: Not safe for work (NSFW) content classification for Video
      description: Classify a video into Not Safe For Work (NSFW)/Pornographic/Nudity/Racy content and Safe Content. Helpful for filtering out unsafe content when processing user images. Input image should be MP4, MOV, WEBM, MKV, AVI, FLV, MPG, GIF. Consumes 20 API calls per frame analyzed. Requires Cloudmersive Managed Instance or Private Cloud deployment.
      operationId: Nsfw_ClassifyVideo
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NsfwResult'
            text/json:
              schema:
                $ref: '#/components/schemas/NsfwResult'
            application/xml:
              schema:
                $ref: '#/components/schemas/NsfwResult'
            text/xml:
              schema:
                $ref: '#/components/schemas/NsfwResult'
      security:
      - Apikey: []
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                videoFile:
                  type: string
                  description: Video file to perform the operation on.  Common file formats such as MP4, MPG are supported.
                  format: binary
              required:
              - videoFile
components:
  schemas:
    NsfwAdvancedResult:
      description: Result of an Advanced NSFW classification
      type: object
      properties:
        Successful:
          description: True if the classification was successfully run, false otherwise
          type: boolean
        CleanResult:
          description: True if the result was clean, false otherwise
          type: boolean
        ContainsNudity:
          description: True if the image contains nudity or sex, false otherwise
          type: boolean
        ContainsGraphicViolence:
          description: True if the image contains graphic violence and/or gore, false otherwise
          type: boolean
        ContainsNonGraphicViolence:
          description: True if the image contains non-graphic violence, e.g. weapons, false otherwise
          type: boolean
        ContainsSelfHarm:
          description: True if the image contains self-harm or suicide imagery, false otherwise
          type: boolean
        ContainsHate:
          description: True if the image contains hate, false otherwise
          type: boolean
        ContainsPotentialIllegalActivity:
          description: True if the image contains potentially illegal activity such as drugs, false otherwise
          type: boolean
        ContainsMedicalImagery:
          description: True if the image contains medical imagery, false otherwise
          type: boolean
        ContainsProfanity:
          description: True if the image contains profanity or obscenities, false otherwise
          type: boolean
        Score:
          format: double
          description: Score between 0.0 and 1.0.  Scores of 0.0-0.2 represent high probability safe content, while scores 0.8-1.0 represent high probability unsafe content.  Content between 0.2 and 0.8 is of increasing raciness.
          type: number
        ClassificationOutcome:
          description: 'Classification result into four categories: SafeContent_HighProbability, UnsafeContent_HighProbability, RacyContent, SafeContent_ModerateProbability'
          type: string
    NsfwResult:
      description: Result of an NSFW classification
      type: object
      properties:
        Successful:
          description: True if the classification was successfully run, false otherwise
          type: boolean
        Score:
          format: double
          description: Score between 0.0 and 1.0.  Scores of 0.0-0.2 represent high probability safe content, while scores 0.8-1.0 represent high probability unsafe content.  Content between 0.2 and 0.8 is of increasing raciness.
          type: number
        ClassificationOutcome:
          description: 'Classification result into four categories: SafeContent_HighProbability, UnsafeContent_HighProbability, RacyContent, SafeContent_ModerateProbability'
          type: string
  securitySchemes:
    Apikey:
      type: apiKey
      description: API Key Authentication
      name: Apikey
      in: header
x-provenance:
  method: harvested
  publisher: Cloudmersive
  source: https://api.cloudmersive.com/image/docs/v1/swagger
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)