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

# Detect portrait image

> Check whether an uploaded image contains a human portrait.



## OpenAPI

````yaml /openapi.old.json post /api/checkHumanImage
openapi: 3.0.3
info:
  title: Neural4D Management API
  description: Management endpoints for Neural4D, including request and response examples.
  version: 1.5.4
servers:
  - url: https://alb.neural4d.com:3000
    description: Production server
security:
  - bearerAuth: []
tags:
  - name: text-to-3d
    description: Create 3D models from text prompts.
    x-group: Text to 3D
  - name: image-to-3d
    description: Create 3D models from uploaded images.
    x-group: Image to 3D
  - name: model-management
    description: Retrieve finished models, track jobs, and convert model formats.
    x-group: Model management
  - name: media-generation
    description: Generate pictures and videos and query their results.
    x-group: Picture and video generation
  - name: account-and-validation
    description: Check portrait inputs and query remaining points.
    x-group: Account and validation
paths:
  /api/checkHumanImage:
    post:
      tags:
        - account-and-validation
      summary: Detect portrait image
      description: Check whether an uploaded image contains a human portrait.
      operationId: checkHumanImage
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/CheckHumanImageRequest'
            examples:
              default:
                value:
                  image: (binary)
      responses:
        '200':
          description: Detection result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CheckHumanImageResponse'
              examples:
                portraitDetected:
                  value:
                    statusCode: 0
                    result: true
                    message: success
                rateLimited:
                  value:
                    statusCode: -1
                    result: false
                    message: >-
                      Rate limit reached for image style detection, returning
                      false
components:
  schemas:
    CheckHumanImageRequest:
      type: object
      required:
        - image
      properties:
        image:
          type: string
          format: binary
          description: Portrait image to inspect. Supported formats are JPG, JPEG, and PNG.
    CheckHumanImageResponse:
      type: object
      required:
        - statusCode
        - result
        - message
      properties:
        statusCode:
          type: integer
          enum:
            - -1
            - 0
          description: >-
            Detection status. `0` means the result is valid and `-1` means the
            result is invalid.
        result:
          type: boolean
          description: Whether a human portrait was detected in the uploaded image.
        message:
          type: string
          description: Human-readable portrait detection result.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Use the bearer token provided through the Neural4D website.
      x-default: YOUR_TOKEN

````