# Generated by ShowAPI OpenAPI generator
# source: market/1768
# generated-at: 2026-06-26T01:54:36.807Z
openapi: 3.0.3
info:
  title: AI生成图片标签
  description: 根据传入的图片，该接口能够自动识别和检测图片中的内容信息，并以标签的形式输出结果。这些标签可以描述图片中的物体、场景或人物等内容，例如宠物、人物等。这个功能可以广泛应用于拍照识物、场景分析、内容推荐与审核以及智能相册管理等各种场景。
  termsOfService: https://www.showapi.com/helpcenter/view#/4019/2
  version: 1.0.0
servers:
  - url: https://route.showapi.com
paths:
  /1768-1:
    x-pointCode: 1
    x-mode: mapping
    x-read-timeout: 60
    x-connect-timeout: 60
    post:
      summary: 图片标签
      responses:
        "200":
          description: 成功响应
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/ShowapiResEnvelope"
                  - type: object
                    properties:
                      showapi_res_body:
                        type: object
                        properties:
                          ret_code:
                            type: string
                            description: 接口调用是否成功,0为成功,其他为失败
                          remark:
                            type: string
                            description: 提示信息
                          labels:
                            type: array
                            items:
                              type: object
                              properties:
                                label:
                                  type: string
                                  description: 图像标签名字
                                confidence:
                                  type: string
                                  description: 图像标签的置信度，取值范围[0， 100]，数值越大置信度越高
                            description: 图像的分类标签列表
                        description: 业务返回体
      operationId: 1768_1_POST
      parameters: []
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                imgUrl:
                  type: string
                  description: 可下载的公网图片地址（与base64互斥）
                imgBase64:
                  type: string
                  description: 图片base64（与url互斥）
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/1768?tab=book
x-apiCode: "1768"
x-is-own: true
x-is-op: true
