Invocation
- Service ID
thai-ocr- Method
POST- Endpoint
/api/tools/thai-ocr- Legacy Endpoint
/api/tools/aliyun-ocr-thai- MCP Tool
thai_ocr- Price
- XIAO 0.01
Paid API service
Recognize printed text from a public image URL. Use this OCR API for Thai document images; pass optional language and layout hints when the schema supports them.
thai-ocrPOST/api/tools/thai-ocr/api/tools/aliyun-ocr-thaithai_ocrCall the endpoint without payment to receive HTTP 402 metadata. If payment is required, open xiaopay.top to obtain XIAO, create the guarantee, then retry with X-Payment-Token, an XIAO guarantee header, or MCP paymentToken.
Call POST /api/tools/thai-ocr once to receive HTTP 402 with accepts[] requirements. Open https://xiaopay.top to obtain XIAO, create an AI wallet guarantee for merchant_id=aivps.lat and merchant_order_id=payment.paymentId, then retry with X402-Guarantee. If you need the legacy reusable token flow, create a payment with POST /api/payments using serviceId="thai-ocr".
{
"exampleRequest": {
"imageUrl": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20241218/utgxmk/%E6%B3%B0%E8%AF%AD%E8%AF%86%E5%88%AB.png",
"needRotate": false,
"outputCharInfo": false,
"outputTable": false
},
"exampleResponse": {
"code": "200",
"content": "เริมเห็นผิวที่เรียบเบียน",
"data": {
"content": "เริมเห็นผิวที่เรียบเบียน"
},
"message": "success",
"requestId": "example-request-id"
},
"inputSchema": {
"properties": {
"imageUrl": {
"format": "uri",
"type": "string"
},
"needRotate": {
"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"
}
}