# Prompt Check

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v1/nova/prompt-check:
    post:
      summary: Prompt Check
      deprecated: false
      description: >-
        The API to verify if prompt contains ban words or invalid parameter. It
        does not exactly match the rule from MJ but can avoid most of the bad
        cases.
      tags:
        - API Documentation
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                prompt:
                  type: string
                  description: Prompt to be checked
              x-apifox-orders:
                - prompt
              required:
                - prompt
            example:
              prompt: Trump dancing
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    description: The status of the promtp checked.
                    enum:
                      - SUCCESS
                      - FAIL
                    x-apifox-enum:
                      - value: SUCCESS
                        name: ''
                        description: ''
                      - value: FAIL
                        name: ''
                        description: ''
                  message:
                    type: string
                    description: The error message if check failed.
                x-apifox-orders:
                  - status
                  - message
                required:
                  - status
              examples:
                '1':
                  summary: Success
                  value:
                    status: SUCCESS
                '2':
                  summary: FAIL
                  value:
                    message: >-
                      Sorry! Our AI moderator thinks this prompt is probably
                      against our community standards! 'Trump' is not allowed.
                    status: FAIL
          headers: {}
          x-apifox-name: Success
      security:
        - bearer: []
      x-apifox-folder: API Documentation
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/5160896/apis/api-232398062-run
components:
  schemas: {}
  securitySchemes:
    bearerAuth:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://api.imaginepro.ai
    description: Prod Env
security: []

```
