通过调用视觉大模型模型,自动识别并去除图片中的水印。接口为同步模式(内部轮询),提交后自动等待处理完成并返回结果。
通过调用视觉大模型模型,自动识别并去除图片中的水印。接口为同步模式(内部轮询),提交后自动等待处理完成并返回结果。
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| image_file | file | 是 | 图片文件,支持 JPG/PNG/WebP/BMP/GIF,最大10MB |
[
{
"name": "image_file",
"type": "file",
"required": true,
"description": "图片文件,支持 JPG/PNG/WebP/BMP/GIF,最大10MB",
"example": ""
}
]{"openapi":"3.1.1","info":{"title":"图片去水印","description":"通过调用视觉大模型模型,自动识别并去除图片中的水印。接口为同步模式(内部轮询),提交后自动等待处理完成并返回结果。","version":"1.0.0"},"paths":{"/apis/gateway?api=watermark":{"get":{"summary":"图片去水印","description":"通过调用视觉大模型模型,自动识别并去除图片中的水印。接口为同步模式(内部轮询),提交后自动等待处理完成并返回结果。","parameters":[{"name":"image_file","in":"query","required":true,"schema":{"type":"string"},"description":"图片文件,支持 JPG/PNG/WebP/BMP/GIF,最大10MB"}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"summary":"图片去水印","description":"通过调用视觉大模型模型,自动识别并去除图片中的水印。接口为同步模式(内部轮询),提交后自动等待处理完成并返回结果。","parameters":[{"name":"image_file","in":"query","required":true,"schema":{"type":"string"},"description":"图片文件,支持 JPG/PNG/WebP/BMP/GIF,最大10MB"}],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object"}}}}}}}},"servers":[{"url":"https://api.souxiaocha.com","description":"当前访问入口(https)"}]}
{"success":false,"error":"missing_image","message":"请上传图片文件(image_file)或提供base64编码(image_base64)"}https://api.souxiaocha.com/apis/gateway?api=watermarkGET https://api.souxiaocha.com/apis/gateway?api=watermark apikey=你的API密钥&image_file=请填写image_file
GET 参数放在查询字符串中。参数值请替换为实际有效值。
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
image_file | file | 是 | 图片文件,支持 JPG/PNG/WebP/BMP/GIF,最大10MB |
{"success":false,"error":"missing_image","message":"请上传图片文件(image_file)或提供base64编码(image_base64)"}通过调用视觉大模型模型,自动识别并去除图片中的水印。接口为同步模式(内部轮询),提交后自动等待处理完成并返回结果。
https://api.souxiaocha.com/apis/gateway?api=watermark
GET / POST(业务参数 GET 通过 URL 传递,POST 支持表单或 JSON)
调用需携带平台密钥(用户中心「令牌管理」获取,SK- 开头):
key=SK-你的密钥X-API-Key: SK-你的密钥| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| image_file | file | 是 | 图片文件,支持 JPG/PNG/WebP/BMP/GIF,最大10MB |
[
{"name": "image_file", "type": "file", "required": true, "description": "图片文件,支持 JPG/PNG/WebP/BMP/GIF,最大10MB"}
]
失败返回示例:
{"success":false,"error":"missing_image","message":"请上传图片文件(image_file)或提供base64编码(image_base64)"}
| 参数名 | 类型 | 说明 |
|---|---|---|
| data.task_id | integer | 任务ID |
| data.result_url | string | 去水印后的图片URL |
| data.poll_count | integer | 轮询次数(每次1秒) |
| generated_at | string | 生成时间 |
curl "https://api.souxiaocha.com/apis/gateway?api=watermark?key=SK-你的密钥"
上游业务级错误:
| code | msg | 描述 |
|---|---|---|
| 400 | missing_image | 缺少图片参数 |
| 400 | invalid_image_format | 图片格式不支持 |
| 400 | image_too_large | 图片超过10MB |
| 405 | method_not_allowed | 仅支持POST |
| 500 | api_request_failed | 第三方接口请求异常 |
| 502 | task_creation_failed | 创建任务失败 |
| 502 | poll_timeout | 处理超时 |
平台级错误(errcode):11001 缺少密钥 / 11002 密钥无效或已禁用 / 11005 接口禁用 / 11006 接口维护 / 11010 积分不足 / 11018 请求方式不允许。
失败时请以响应体中的 code / errcode 与 msg 判断。
2026-09-24
curl "https://api.souxiaocha.com/apis/gateway?api=watermark?key=SK-你的密钥"
// 结果将在此处显示