百度云-文字识别
连接器

百度云-文字识别

连接器

需两次购买:①订购原厂商接口 ②免费接口,注册后直接调用;覆盖多种通用场景、多种语言的高精度整图文字检测和识别服务,包括各类印刷和手写文档、网络图片、表格、数字、二维码等;可用于纸质文档电子化、办公文档/报表识别、图像内容审核、快递面单识别等场景。

免费接口,注册即用,无需单独购买。
通用机打发票识别
接入点说明
对国家/地方税务局发行的横/竖版通用机打发票进行结构化识别,可识别23个关键字段,包括发票类型、发票号码、发票代码、开票日期、商品名称、合计金额等。原接口订购地址:https://cloud.baidu.com/product/ocr_finance
接口地址
https://connector.showapi.com/2568-20?appKey={your_appKey}查看密钥调用帮助
返回格式JSON
请求方式POST
案例截图
案例
请求参数
Header 参数
Post 表单
返回参数
该接口返回经 showapi_res_body 系统封装,业务数据均位于该对象内;系统级字段见
返回体
cURL
curl -X POST "https://connector.showapi.com/2568-20?appKey=YOUR_APPKEY" \
  -H "content-type: application/x-www-form-urlencoded" \
  -d "ds_id=&image=&url=https%3A%2F%2Fshowapi.oss-cn-hangzhou.aliyuncs.com%2Fmodleapi%2Flzh%2Fmachine_print_invoice.jpg&pdf_file=&pdf_file_num="
返回示例
JSON
{  "log_id": 168790215,
    "words_result_num": 6,
    "words_result": {
        "CommodityName": {
            "location": {
                "left": 363,
                "top": 810,
                "width": 249,
                "height": 44
            },
            "words": "汽油"
        },
        "InvoiceCode": {
            "location": {
                "left": 510,
                "top": 353,
                "width": 298,
                "height": 56
            },
            "words": "061001700107"
        },
        "InvoiceDate": {
            "location": {
                "left": 483,
                "top": 602,
                "width": 172,
                "height": 59
            },
            "words": "2018-03-14"
        },
        "InvoiceNum": {
            "location": {
                "left": 506,
                "top": 399,
                "width": 202,
                "height": 64
            },
            "words": "31108887"
        },
        "InvoiceType": {
            "location": {
                "left": 0,
                "top": 0,
                "width": 0,
                "height": 0
            },
            "words": "机打发票"
        },
        "TotalTax": {
            "location": {
                "left": 477,
                "top": 1496,
                "width": 188,
                "height": 40
            },
            "words": "300.00"
        }
    }}
MCP 服务集成接口级

在 Cherry Studio、ChatBox 等支持 MCP 的客户端中配置,将 {your_appKey} 替换为真实 AppKey(AppKey 管理)。该服务覆盖本接口全部接入点。

MCP JSON
{
  "mcpServers": {
    "showapi-mcp-2568": {
      "url": "http://www.showapi.com.cn/mcp/2568/{your_appKey}"
    }
  }
}
OpenAPI 文档接口级

标准 OpenAPI 3.0 文档,覆盖本接口全部接入点,可导入 Apifox / Postman / Swagger UI,或供 AI Agent 直接消费。