# Generated by ShowAPI OpenAPI generator # source: market/2108 # generated-at: 2026-09-10T07:23:58.642Z openapi: 3.0.3 info: title: 盲水印 description: 通过上传原始图片和水印信息,生成带有隐性水印的图片。水印具备优异的抗篡改能力,可抵御缩放、裁剪、平台压缩、二次转发等操作,传播后仍可精准溯源,可高效实现图片版权确权、来源标记与渠道追踪,为数字图像提供低成本、可靠的版权防护方案。 termsOfService: https://www.showapi.com/helpcenter/view#/4019/2 version: 1.0.0 servers: - url: https://route.showapi.com paths: /2108-4: x-pointCode: 4 x-mode: mapping x-read-timeout: 60 x-connect-timeout: 60 post: summary: 获取水印-text description: 获取水印的接口适用于图片编辑、版权保护、社交媒体分享等场景。 responses: "200": description: 成功响应 content: application/json: schema: allOf: - $ref: "#/components/schemas/ShowapiResEnvelope" - type: object properties: showapi_res_body: type: object properties: watermark: type: string description: 水印内容 ret_code: type: string description: 0表示操作成功并扣减调用次数, 其他值表示失败 description: 业务返回体 operationId: 2108_4_POST parameters: [] requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: result_img_base64: type: string minLength: 0 maxLength: 10000000 description: 具有盲水印的图片base64,仅支持JPEG, PNG!该图片为"万维易源"<盲水印>接口<添加水印-text>生成的水印图片 result_img_url: type: string description: 具有盲水印的图片url,仅支持JPEG, PNG!该图片为"万维易源"<盲水印>接口<添加水印-text>生成的水印图片 /2108-3: x-pointCode: 3 x-mode: mapping x-read-timeout: 60 x-connect-timeout: 60 post: summary: 添加水印-text description: 图片尽量选择正方形的,适用于图片处理、版权保护、社交媒体分享等场景。 responses: "200": description: 成功响应 content: application/json: schema: allOf: - $ref: "#/components/schemas/ShowapiResEnvelope" - type: object properties: showapi_res_body: type: object properties: result_img: type: string description: 添加了水印后的图片 ret_code: type: string description: 0表示操作是否成功并扣费 其他值为失败 description: 业务返回体 operationId: 2108_3_POST parameters: [] requestBody: content: application/x-www-form-urlencoded: schema: type: object properties: watermark: type: string description: |- 水印文本 注:只能嵌入二值化的信息, 会自动取水印的B通道并二值化嵌入,水印最好是黑白的图片 要求水印的长×宽 <= 图片的长/4 × 图片的宽/4 , 程序会自动验证 src_img_base64: type: string minLength: 0 maxLength: 10000000 description: 原图片的base64编码,文件大小不能超过5M,仅支持JPEG, PNG! src_img_url: type: string minLength: 0 maxLength: 10000000 description: |- 原图片url,文件大小不能超过5M,仅支持JPEG, PNG! 注:只能嵌入二值化的信息, 会自动取水印的B通道并二值化嵌入,水印最好是黑白的图片 要求水印的长×宽 <= 图片的长/4 × 图片的宽/4 , 程序会自动验证 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/2108?tab=book x-apiCode: "2108" x-is-own: false x-is-op: false