# 人工智能检测

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/ai-detection/single:
    post:
      summary: 人工智能检测
      deprecated: false
      description: |+
        检查 AI 内容的估计水平。

      tags: []
      parameters:
        - name: content-type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                language:
                  type: string
                text:
                  type: string
              required:
                - language
                - text
              x-apifox-orders:
                - language
                - text
            example:
              language: auto
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  language:
                    type: string
                  variance:
                    type: integer
                  burstiness:
                    type: integer
                  averagePerplexity:
                    type: integer
                  aiGeneratedProbability:
                    type: integer
                  paragraphs:
                    type: array
                    items:
                      type: object
                      properties:
                        variance:
                          type: integer
                        burstiness:
                          type: integer
                        averagePerplexity:
                          type: integer
                        aiGeneratedProbability:
                          type: integer
                        startIndex:
                          type: integer
                        sentences:
                          type: array
                          items:
                            type: object
                            properties:
                              text:
                                type: string
                              startIndex:
                                type: integer
                              perplexity:
                                type: integer
                              aiGeneratedProbability:
                                type: integer
                            x-apifox-orders:
                              - text
                              - startIndex
                              - perplexity
                              - aiGeneratedProbability
                      x-apifox-orders:
                        - variance
                        - burstiness
                        - averagePerplexity
                        - aiGeneratedProbability
                        - startIndex
                        - sentences
                required:
                  - language
                  - variance
                  - burstiness
                  - averagePerplexity
                  - aiGeneratedProbability
                  - paragraphs
                x-apifox-orders:
                  - language
                  - variance
                  - burstiness
                  - averagePerplexity
                  - aiGeneratedProbability
                  - paragraphs
              examples:
                '1':
                  summary: 成功示例
                  value:
                    language: string
                    variance: 0
                    burstiness: 0
                    averagePerplexity: 0
                    aiGeneratedProbability: 0
                    paragraphs:
                      - variance: 0
                        burstiness: 0
                        averagePerplexity: 0
                        aiGeneratedProbability: 0
                        startIndex: 0
                        sentences:
                          - text: string
                            startIndex: 0
                            perplexity: 0
                            aiGeneratedProbability: 0
                '2':
                  summary: 成功示例
                  value:
                    message: string
                    error: Bad Request
                    statusCode: 400
                '3':
                  summary: 成功示例
                  value:
                    message: invalid_api_key
                    error: Unauthorized
                    statusCode: 401
                '4':
                  summary: 成功示例
                  value:
                    message: payment_required
                    error: Payment Required
                    statusCode: 402
                '5':
                  summary: 成功示例
                  value:
                    message: Your plan does not support this resource
                    error: Forbidden
                    statusCode: 403
                '6':
                  summary: 成功示例
                  value:
                    message: Inappropriate content detected
                    error: Request Conflict
                    statusCode: 406
                '7':
                  summary: 成功示例
                  value:
                    message: You have reached your rate limit.
                    error: Too Many Request
                    statusCode: 429
                '8':
                  summary: 成功示例
                  value:
                    message: >-
                      An internal error occured, please contact the
                      administrator.
                    error: Internal Server Error
                    statusCode: 500
                '9':
                  summary: 成功示例
                  value:
                    message: >-
                      A model error occured, this could mean it is overloaded
                      with requests, please try again later
                    error: Model Error
                    statusCode: 513
          headers: {}
          x-apifox-name: 成功
        '400':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  error:
                    type: string
                  statusCode:
                    type: integer
                required:
                  - message
                  - error
                  - statusCode
                x-apifox-orders:
                  - message
                  - error
                  - statusCode
          headers: {}
          x-apifox-name: 请求有误
        '401':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  error:
                    type: string
                  statusCode:
                    type: integer
                required:
                  - message
                  - error
                  - statusCode
                x-apifox-orders:
                  - message
                  - error
                  - statusCode
          headers: {}
          x-apifox-name: 没有权限
        '402':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  error:
                    type: string
                  statusCode:
                    type: integer
                required:
                  - message
                  - error
                  - statusCode
                x-apifox-orders:
                  - message
                  - error
                  - statusCode
          headers: {}
          x-apifox-name: 请求有误
        '403':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  error:
                    type: string
                  statusCode:
                    type: integer
                required:
                  - message
                  - error
                  - statusCode
                x-apifox-orders:
                  - message
                  - error
                  - statusCode
          headers: {}
          x-apifox-name: 禁止访问
        '406':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  error:
                    type: string
                  statusCode:
                    type: integer
                required:
                  - message
                  - error
                  - statusCode
                x-apifox-orders:
                  - message
                  - error
                  - statusCode
          headers: {}
          x-apifox-name: 请求有误
        '429':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  error:
                    type: string
                  statusCode:
                    type: integer
                required:
                  - message
                  - error
                  - statusCode
                x-apifox-orders:
                  - message
                  - error
                  - statusCode
          headers: {}
          x-apifox-name: 请求有误
        '500':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  error:
                    type: string
                  statusCode:
                    type: integer
                required:
                  - message
                  - error
                  - statusCode
                x-apifox-orders:
                  - message
                  - error
                  - statusCode
          headers: {}
          x-apifox-name: 服务器错误
        '513':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  error:
                    type: string
                  statusCode:
                    type: integer
                required:
                  - message
                  - error
                  - statusCode
                x-apifox-orders:
                  - message
                  - error
                  - statusCode
          headers: {}
          x-apifox-name: 服务器错误
      security: []
      x-apifox-folder: ''
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/4355615/apis/api-166408540-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: http://dev-cn.your-api-server.com
    description: 开发环境
  - url: http://test-cn.your-api-server.com
    description: 测试环境
  - url: https://api.smodin.io
    description: 正式环境
security: []

```
