> ## Documentation Index
> Fetch the complete documentation index at: https://docs.modelslab.com/llms.txt
> Use this file to discover all available pages before exploring further.

# NSFW Prompt Check

> This endpoint is useful to check if a prompt has CP or NSFW content.

## Request

Send a `POST` request to below endpoint to check if an image is nsfw or not.

```curl curl theme={"theme":{"light":"github-light","dark":"github-dark"}}
--request POST 'https://modelslab.com/api/check_nsfw_cp' \
```

## Body

```json json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{  
    "key": "your_api_key",  
    "prompt": "ultra realistic close up portrait ((beautiful pale cyberpunk female with heavy black eyeliner, nude)) , blue eyes, shaved side haircut, hyper detail, cinematic lighting, magic neon, dark red city, Canon EOS R3, nikon, f/1.4, ISO 200, 1/160s, 8K, RAW, unedited, symmetrical balance, in-frame, 8K"
}
```


## OpenAPI

````yaml POST /check_nsfw_cp
openapi: 3.1.0
info:
  title: ModelsLab General API
  description: >-
    General utility endpoints for ModelsLab API including subscription
    management, content moderation, and file handling
  license:
    name: MIT
  version: 6.0.0
servers:
  - url: https://modelslab.com/api
    description: Main API server (for endpoints without version prefix)
  - url: https://modelslab.com/api/v3
    description: API v3 server
  - url: https://modelslab.com/api/v5
    description: API v5 server
  - url: https://modelslab.com/api/v6
    description: API v6 server
security: []
paths:
  /check_nsfw_cp:
    post:
      summary: NSFW prompt check
      description: This endpoint is useful to check if a prompt has cp or nsfw content
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NSFWPromptCheckRequest'
      responses:
        '200':
          description: NSFW prompt check response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NSFWPromptCheckResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      servers:
        - url: https://modelslab.com/api
components:
  schemas:
    NSFWPromptCheckRequest:
      type: object
      required:
        - key
        - prompt
      properties:
        key:
          type: string
          description: Your enterprise API Key used for request authorization
        prompt:
          type: string
          description: The prompt you want to check
    NSFWPromptCheckResponse:
      type: object
      properties:
        status:
          type: string
          enum:
            - success
        is_cp:
          type: boolean
          description: Whether the prompt contains child pornography content
        is_nsfw:
          type: boolean
          description: Whether the prompt contains NSFW content
        original_prompt:
          type: string
          description: The original prompt that was checked
        filtered_prompt:
          type: string
          description: The filtered version of the prompt
    Error:
      type: object
      required:
        - status
        - message
      properties:
        status:
          type: string
          enum:
            - error
        message:
          type: string
          description: Error message

````

## Related topics

- [Assets Generated](/general-api/assets-generated.md)
- [Changelog](/release-notes/api.md)
- [General Utility APIs](/general-api/overview.md)
