# Generated by ShowAPI OpenAPI generator
# source: market/1201
# generated-at: 2026-06-29T08:50:55.899Z
openapi: 3.0.3
info:
  title: 图片鉴黄与鉴暴恐
  description: 自动化地识别和过滤图像中的不适宜内容，包括色情、暴力和恐怖主义等元素。支持图片url、图片base64、图片文件。准确率高速度快，支持常见的图片格式PNG,JPG,JPEG,BMP。
  termsOfService: https://www.showapi.com/helpcenter/view#/4019/2
  version: 1.0.0
servers:
  - url: https://route.showapi.com
paths:
  /1201-1:
    x-pointCode: 1
    x-mode: mapping
    x-read-timeout: 15
    x-connect-timeout: 5
    post:
      summary: 图片鉴黄与鉴暴恐
      description: 对图片进行智能鉴黄鉴暴恐，为您自动识别色情图片及恐怖暴力图片
      responses:
        "200":
          description: 成功响应
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/ShowapiResEnvelope"
                  - type: object
                    properties:
                      showapi_res_body:
                        type: object
                        properties:
                          ret_code:
                            type: number
                            description: |-
                              鉴别成功标志：
                              0：成功；
                              其他值为失败
                          remark:
                            type: string
                            description: |
                              当失败时提示message
                          code:
                            type: string
                            description: |-
                              识别结果标志：
                              normal：正常图片；
                              sex：色情图片；
                              illegal：暴恐图片；
                              needManualReview：识别结果需要人工确认；
                          rate:
                            type: number
                            description: |
                              是色情／暴恐的可能性分值，越高越可能是色情／暴恐图片。100分最高值，0分最低值 。如果code=normal时，此值无效。
                        description: 业务返回体
      operationId: 1201_1_POST
      parameters: []
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                imgUrl:
                  type: string
                  description: 鉴别的图片url，该参数、base64参数、图片文件参数三者任选一个传入，该地址图片下载时间限制为3秒，超过将报错
                base64:
                  type: string
                  minLength: 0
                  maxLength: 10000000
                  description: 鉴别的图片base64串，该参数、imgUrl参数、图片文件参数三者任选一个传入
components:
  securitySchemes:
    AppKeyAuth:
      type: apiKey
      in: query
      name: appKey
      description: 从 ShowAPI 控制台获取的 appKey，管理地址：https://www.showapi.com/console#/myApp
  schemas:
    ShowapiResEnvelope:
      type: object
      description: ShowAPI 统一返回包裹（业务数据位于 showapi_res_body）
      properties:
        showapi_res_code:
          type: integer
          description: API 返回的状态码
        showapi_res_error:
          type: string
          description: API 返回的错误信息
        showapi_res_id:
          type: string
          description: API 请求的唯一标识
        showapi_fee_num:
          type: integer
          description: API 调用计费次数
security:
  - AppKeyAuth: []
externalDocs:
  url: https://www.showapi.com/apiGateway/view/1201?tab=book
x-apiCode: "1201"
x-is-own: false
x-is-op: true
