Invocation
- Service ID
ocr-api- Method
POST- Endpoint
/api/tools/ocr-api- Legacy Endpoint
/api/tools/aliyun-ocr-api- MCP Tool
ocr_api- Price
- USD 0.01
Paid API service
Recognize printed text from a public image URL. Use this OCR API for generic OCR, receipt OCR, invoice OCR, screenshots, and document images; pass optional language and layout hints when the schema supports them.
ocr-apiPOST/api/tools/ocr-api/api/tools/aliyun-ocr-apiocr_apiCall the endpoint without payment to receive HTTP 402 metadata. After payment is complete, retry with X-Payment-Token, an x402 payment signature, or MCP paymentToken.
Call POST /api/tools/ocr-api once to receive HTTP 402 with accepts[] requirements, or create a payment with POST /api/payments using serviceId="ocr-api". Pay Base USDC with PAYMENT-SIGNATURE or pay XIAO with X402-Guarantee, then retry the same request.
{
"exampleRequest": {
"imageUrl": "https://tesseract.projectnaptha.com/img/eng_bw.png",
"languages": [
"eng",
"chn"
],
"needRotate": false,
"needSortPage": false,
"outputCharInfo": false,
"outputTable": false
},
"exampleResponse": {
"code": "200",
"content": "PACKING Shipper/Export Invoice No \u0026 Date",
"data": {
"content": "PACKING Shipper/Export Invoice No \u0026 Date"
},
"message": "success",
"requestId": "example-request-id"
},
"inputSchema": {
"properties": {
"imageUrl": {
"format": "uri",
"type": "string"
},
"languages": {
"items": {
"type": "string"
},
"type": "array"
},
"needRotate": {
"type": "boolean"
},
"needSortPage": {
"type": "boolean"
},
"outputCharInfo": {
"type": "boolean"
},
"outputTable": {
"type": "boolean"
}
},
"required": [
"imageUrl"
],
"type": "object"
},
"outputSchema": {
"properties": {
"code": {
"type": "string"
},
"content": {
"type": "string"
},
"data": {
"type": "object"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
}
},
"required": [
"requestId",
"content",
"data"
],
"type": "object"
}
}