{"schemaVersion":"server402.catalog.search.v1","generatedAt":"2026-07-21T07:47:28Z","generatedAtBeijing":"2026-07-21 15:47:28 CST","timezone":"Asia/Shanghai","query":"word-count","expandedTerms":["character count","count characters","count words","text statistics","字数","字数统计","字符统计","文本统计","统计字数"],"filters":{"limit":10},"total":5,"services":[{"id":"word-count","canonicalId":"word-count","name":"Word Count","displayName":"文本字数统计","description":"Count Unicode characters, whitespace-delimited words, and lines in a text string.","descriptionForModel":"Count Unicode characters, whitespace-delimited words, and lines in a text string.","category":"text-analysis","keywords":["text","word count","character count","line count","statistics"],"useCases":["Estimate text length before publishing","Measure prompt or document size","Analyze plain text statistics"],"limitations":["Words are counted by whitespace boundaries"],"tags":["text","utility","analysis"],"method":"POST","endpoint":"/api/tools/word-count","endpointAliases":["/api/tools/word-count"],"inputTypes":["object","string"],"outputTypes":["object","integer"],"inputSchema":{"properties":{"text":{"type":"string"}},"required":["text"],"type":"object"},"outputSchema":{"properties":{"characters":{"type":"integer"},"lines":{"type":"integer"},"words":{"type":"integer"}},"type":"object"},"exampleRequest":{"text":"hello paid api"},"exampleResponse":{"characters":14,"lines":1,"words":3},"pricing":{"amountCents":5,"amountMicros":50000,"currency":"USD","policyId":"tiny-api","settleMode":"settle_first","billingMode":"per_call","maxCalls":1,"allowReuse":false,"bindClient":true},"payment":{"providerId":"x402-base-usdc","provider":"x402_facilitator"},"quality":{"qualityScore":96,"healthStatus":"healthy","healthCheckedAt":"2026-05-26T14:36:29Z","latencyMs":359,"successRate":1,"callCount":8,"executionCount":8,"successCount":8,"errorCount":0,"paymentRequireds":0,"lastCallAt":"2026-07-21T07:42:30Z"},"discovery":{"toolName":"word_count","searchText":"word-count Word Count Count Unicode characters, whitespace-delimited words, and lines in a text string. Count Unicode characters, whitespace-delimited words, and lines in a text string. text-analysis object string object integer text utility analysis text word count character count line count statistics Estimate text length before publishing Measure prompt or document size Analyze plain text statistics Words are counted by whitespace boundaries /api/tools/word-count","aliases":["Word Count","text-analysis","文本字数统计","text","utility","analysis","word count","character count","line count","statistics","word-count","word_count","/api/tools/word-count"],"localeHints":["en","zh"],"useCases":["Estimate text length before publishing","Measure prompt or document size","Analyze plain text statistics"],"limitations":["Words are counted by whitespace boundaries"],"paymentFlow":{"type":"http-402","createPayment":{"method":"POST","url":"/api/payments","bodySchema":{"properties":{"providerId":{"type":"string"},"serviceId":{"description":"Use the canonical service id from the catalog. Legacy internal ids remain accepted for backward compatibility.","type":"string"}},"required":["serviceId"],"type":"object"},"responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"verifyPayment":{"method":"GET","url":"/api/payments/{paymentId}","responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"token":{"header":"X-Payment-Token","mcpArgument":"paymentToken","httpUsage":"Send the paid token in the X-Payment-Token request header when calling /api/tools/*.","mcpUsage":"Pass the paid token as the paymentToken argument when calling the MCP tool."},"requiredResponse":{"status":402,"contentType":"application/json","headers":{"PAYMENT-REQUIRED":"base64/json x402PaymentRequired","PAYMENT-SIGNATURE":"base64/json x402 Base USDC payment payload","X-Payment-Required":"true","X-Payment-Token":"payment.token","X402-Guarantee":"base64url/json Xiao Coin escrow guarantee"},"bodySchema":{"properties":{"accepts":{"items":{"type":"object"},"type":"array"},"error":{"type":"string"},"extensions":{"type":"object"},"payment":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"},"paymentFlow":{"type":"object"},"resource":{"type":"object"},"retry":{"type":"object"},"type":{"const":"payment_required","type":"string"},"x402Version":{"type":"integer"}},"required":["type","error","payment","paymentFlow","retry"],"type":"object"},"x402Version":2,"x402Header":"PAYMENT-REQUIRED","paymentAsset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","paymentNetwork":"eip155:8453"},"retry":{"when":"Retry after paying one accepts[] requirement with Base USDC x402, Xiao Coin AI wallet escrow, or after payment.status is paid and the legacy token has remaining calls.","http":["Preferred x402 flow: call the paid /api/tools/* endpoint once and read accepts[] from the HTTP 402 response body or PAYMENT-REQUIRED header.","Pay one accepts[] requirement with an x402-compatible wallet/facilitator on network eip155:8453 using Base USDC.","Retry the exact same request with PAYMENT-SIGNATURE set to the base64 JSON x402 payment payload.","XIAO flow: pay the accepts[] requirement where asset=XIAO with the AI wallet, then retry the exact same request with X402-Guarantee set to the base64url guarantee JSON.","Legacy token flow: POST /api/payments with serviceId, complete/verify payment, then retry with X-Payment-Token set to payment.token."],"mcp":["Call the tool without paymentToken to receive payment_required structuredContent.","Preferred x402 clients should pay the accepts[] requirement and call the underlying HTTP endpoint with PAYMENT-SIGNATURE.","XIAO-capable agents should pay the XIAO accepts[] requirement through the AI wallet and call the underlying HTTP endpoint with X402-Guarantee.","Legacy MCP clients can complete or verify payment.paymentId, then call the same MCP tool again with paymentToken set to payment.token."],"examples":{"http402":["curl -i https://example.com/api/tools/timestamp","Read accepts[0].network=eip155:8453, accepts[0].asset=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, accepts[0].amount, and accepts[0].payTo.","curl -H 'PAYMENT-SIGNATURE: \u003cbase64-json-x402-payment-payload\u003e' https://example.com/api/tools/timestamp"],"legacyToken":["curl -X POST https://example.com/api/payments -H 'Content-Type: application/json' -d '{\"serviceId\":\"timestamp\"}'","curl -H 'X-Payment-Token: \u003cpayment.token\u003e' https://example.com/api/tools/timestamp"],"mcp":["Call tool timestamp with no paymentToken.","After payment is complete, call timestamp again with paymentToken=\u003cpayment.token\u003e."],"xiao":["curl -i https://example.com/api/tools/timestamp","Read the accepts[] entry with asset=XIAO, create an AI wallet guarantee for merchant_id=aivps.lat and merchant_order_id=payment.paymentId.","curl -H 'X402-Guarantee: \u003cbase64url-guarantee-json\u003e' https://example.com/api/tools/timestamp"]},"failures":["payment required","payment token expired","payment token has no remaining calls","api key required","api key is not allowed to call this service"]}},"paymentHint":"Call POST /api/tools/word-count once to receive HTTP 402 with accepts[] requirements, or create a payment with POST /api/payments using serviceId=\"word-count\". Pay Base USDC with PAYMENT-SIGNATURE or pay XIAO with X402-Guarantee, then retry the same request.","retryHint":"If the service returns HTTP 402, pay one accepts[] requirement, then retry with PAYMENT-SIGNATURE for Base USDC, X402-Guarantee for Xiao Coin, or X-Payment-Token: payment.token for legacy token flow.","requiredState":"published, enabled"},"matchScore":240,"matchTerms":["word count","word","count","character count","text statistics","字数","字数统计"],"why":"Matched word count, word, count, character count, text statistics, 字数, 字数统计 for \"Word Count\". Price is USD 0.05 per policy tiny-api.","whyMatched":"Matched word count, word, count, character count, text statistics, 字数, 字数统计 for \"Word Count\". Price is USD 0.05 per policy tiny-api."},{"id":"person-counting","canonicalId":"person-counting","internalServiceId":"aliyun-facebody-detect-body-count","name":"Detect Body Count Face And Body Analysis","description":"Use this visual AI API when the task needs counting people in an image. Send the schema keys exactly as listed (ImageURL); required parameters: ImageURL.","descriptionForModel":"Use this visual AI API when the task needs counting people in an image. Send the schema keys exactly as listed (ImageURL); required parameters: ImageURL.","category":"face-body","keywords":["DetectBodyCount","阿里云人脸人体 人体计数","face detection","body detection","pose estimation","face recognition","liveness detection","human analysis","detect","body","count"],"useCases":["counting people in an image","Call one focused visual AI capability directly with JSON inputs","Use public image or video URLs and structured parameters to get machine-readable results"],"limitations":["Pass parameter names exactly as listed in the input schema","Only public http or https URLs and JSON/base64 text parameters are supported in this adapter","Binary file upload is not exposed by this Server402 adapter","Provider credentials and upstream permissions must be configured on the server"],"tags":["computer-vision","face-body","face-analysis","body-analysis"],"method":"POST","endpoint":"/api/tools/person-counting","legacyEndpoint":"/api/tools/aliyun-facebody-detect-body-count","endpointAliases":["/api/tools/person-counting","/api/tools/aliyun-facebody-detect-body-count"],"inputTypes":["object","string","uri"],"outputTypes":["object","string"],"inputSchema":{"description":"Use Alibaba Cloud RPC parameter names exactly, for example ImageURL, ImageUrl, Url, URL, JobId, or Tasks depending on the service.","properties":{"ImageURL":{"description":"Public http or https image URL accepted by the Alibaba Cloud API.","format":"uri","type":"string"}},"required":["ImageURL"],"type":"object"},"outputSchema":{"properties":{"code":{"type":"string"},"content":{"type":"string"},"data":{"type":"object"},"message":{"type":"string"},"requestId":{"type":"string"}},"required":["requestId","data"],"type":"object"},"exampleRequest":{"ImageURL":"https://example.com/image.jpg"},"exampleResponse":{"code":"200","content":"","data":{"Action":"DetectBodyCount","Result":"example result from Alibaba Cloud facebody"},"message":"success","requestId":"example-request-id"},"pricing":{"amountCents":20,"amountMicros":200000,"currency":"USD","policyId":"aliyun-viapi","settleMode":"settle_first","billingMode":"per_call","maxCalls":1,"allowReuse":false,"bindClient":true},"payment":{"providerId":"x402-base-usdc","provider":"x402_facilitator"},"quality":{"qualityScore":42,"healthStatus":"unhealthy","healthCheckedAt":"2026-06-03T13:57:32Z","healthLatencyMs":108,"latencyMs":27,"successRate":1,"callCount":2,"executionCount":2,"successCount":2,"errorCount":0,"paymentRequireds":0,"lastCallAt":"2026-07-21T07:31:23Z"},"discovery":{"toolName":"person_counting","searchText":"person-counting Detect Body Count Face And Body Analysis Use this visual AI API when the task needs counting people in an image. Send the schema keys exactly as listed (ImageURL); required parameters: ImageURL. Use this visual AI API when the task needs counting people in an image. Send the schema keys exactly as listed (ImageURL); required parameters: ImageURL. face-body object string uri object string computer-vision face-body face-analysis body-analysis DetectBodyCount 阿里云人脸人体 人体计数 face detection body detection pose estimation face recognition liveness detection human analysis detect body count counting people in an image Call one focused visual AI capability directly with JSON inputs Use public image or video URLs and structured parameters to get machine-readable results Pass parameter names exactly as listed in the input schema Only public http or https URLs and JSON/base64 text parameters are supported in this adapter Binary file upload is not exposed by this Server402 adapter Provider credentials and upstream permissions must be configured on the server /api/tools/person-counting","aliases":["Detect Body Count Face And Body Analysis","face-body","computer-vision","face-analysis","body-analysis","DetectBodyCount","阿里云人脸人体 人体计数","face detection","body detection","pose estimation","face recognition","liveness detection","human analysis","detect","body","count","person-counting","person_counting","/api/tools/person-counting"],"localeHints":["en","zh"],"useCases":["counting people in an image","Call one focused visual AI capability directly with JSON inputs","Use public image or video URLs and structured parameters to get machine-readable results"],"limitations":["Pass parameter names exactly as listed in the input schema","Only public http or https URLs and JSON/base64 text parameters are supported in this adapter","Binary file upload is not exposed by this Server402 adapter","Provider credentials and upstream permissions must be configured on the server"],"paymentFlow":{"type":"http-402","createPayment":{"method":"POST","url":"/api/payments","bodySchema":{"properties":{"providerId":{"type":"string"},"serviceId":{"description":"Use the canonical service id from the catalog. Legacy internal ids remain accepted for backward compatibility.","type":"string"}},"required":["serviceId"],"type":"object"},"responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"verifyPayment":{"method":"GET","url":"/api/payments/{paymentId}","responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"token":{"header":"X-Payment-Token","mcpArgument":"paymentToken","httpUsage":"Send the paid token in the X-Payment-Token request header when calling /api/tools/*.","mcpUsage":"Pass the paid token as the paymentToken argument when calling the MCP tool."},"requiredResponse":{"status":402,"contentType":"application/json","headers":{"PAYMENT-REQUIRED":"base64/json x402PaymentRequired","PAYMENT-SIGNATURE":"base64/json x402 Base USDC payment payload","X-Payment-Required":"true","X-Payment-Token":"payment.token","X402-Guarantee":"base64url/json Xiao Coin escrow guarantee"},"bodySchema":{"properties":{"accepts":{"items":{"type":"object"},"type":"array"},"error":{"type":"string"},"extensions":{"type":"object"},"payment":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"},"paymentFlow":{"type":"object"},"resource":{"type":"object"},"retry":{"type":"object"},"type":{"const":"payment_required","type":"string"},"x402Version":{"type":"integer"}},"required":["type","error","payment","paymentFlow","retry"],"type":"object"},"x402Version":2,"x402Header":"PAYMENT-REQUIRED","paymentAsset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","paymentNetwork":"eip155:8453"},"retry":{"when":"Retry after paying one accepts[] requirement with Base USDC x402, Xiao Coin AI wallet escrow, or after payment.status is paid and the legacy token has remaining calls.","http":["Preferred x402 flow: call the paid /api/tools/* endpoint once and read accepts[] from the HTTP 402 response body or PAYMENT-REQUIRED header.","Pay one accepts[] requirement with an x402-compatible wallet/facilitator on network eip155:8453 using Base USDC.","Retry the exact same request with PAYMENT-SIGNATURE set to the base64 JSON x402 payment payload.","XIAO flow: pay the accepts[] requirement where asset=XIAO with the AI wallet, then retry the exact same request with X402-Guarantee set to the base64url guarantee JSON.","Legacy token flow: POST /api/payments with serviceId, complete/verify payment, then retry with X-Payment-Token set to payment.token."],"mcp":["Call the tool without paymentToken to receive payment_required structuredContent.","Preferred x402 clients should pay the accepts[] requirement and call the underlying HTTP endpoint with PAYMENT-SIGNATURE.","XIAO-capable agents should pay the XIAO accepts[] requirement through the AI wallet and call the underlying HTTP endpoint with X402-Guarantee.","Legacy MCP clients can complete or verify payment.paymentId, then call the same MCP tool again with paymentToken set to payment.token."],"examples":{"http402":["curl -i https://example.com/api/tools/timestamp","Read accepts[0].network=eip155:8453, accepts[0].asset=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, accepts[0].amount, and accepts[0].payTo.","curl -H 'PAYMENT-SIGNATURE: \u003cbase64-json-x402-payment-payload\u003e' https://example.com/api/tools/timestamp"],"legacyToken":["curl -X POST https://example.com/api/payments -H 'Content-Type: application/json' -d '{\"serviceId\":\"timestamp\"}'","curl -H 'X-Payment-Token: \u003cpayment.token\u003e' https://example.com/api/tools/timestamp"],"mcp":["Call tool timestamp with no paymentToken.","After payment is complete, call timestamp again with paymentToken=\u003cpayment.token\u003e."],"xiao":["curl -i https://example.com/api/tools/timestamp","Read the accepts[] entry with asset=XIAO, create an AI wallet guarantee for merchant_id=aivps.lat and merchant_order_id=payment.paymentId.","curl -H 'X402-Guarantee: \u003cbase64url-guarantee-json\u003e' https://example.com/api/tools/timestamp"]},"failures":["payment required","payment token expired","payment token has no remaining calls","api key required","api key is not allowed to call this service"]}},"paymentHint":"Call POST /api/tools/person-counting once to receive HTTP 402 with accepts[] requirements, or create a payment with POST /api/payments using serviceId=\"person-counting\". Pay Base USDC with PAYMENT-SIGNATURE or pay XIAO with X402-Guarantee, then retry the same request.","retryHint":"If the service returns HTTP 402, pay one accepts[] requirement, then retry with PAYMENT-SIGNATURE for Base USDC, X402-Guarantee for Xiao Coin, or X-Payment-Token: payment.token for legacy token flow.","requiredState":"published, enabled"},"complexity":"moderate","typicalResponseTime":"1200ms","cacheable":true,"idempotent":true,"outputFormat":"json","relatedServices":["face-database-add-face","face-database-create-entity","face-template-create"],"requiredContext":["public-image-url","aliyun-credentials"],"errorExamples":[{"input":{},"error":"ImageURL is required","statusCode":400},{"input":{"ImageURL":"not-a-url"},"error":"ImageURL must be a valid http or https URL","statusCode":400}],"sla":{"uptime":"99.5%","maxLatency":"5000ms"},"matchScore":44,"matchTerms":["count"],"why":"Matched count for \"Detect Body Count Face And Body Analysis\". Price is USD 0.2 per policy aliyun-viapi.","whyMatched":"Matched count for \"Detect Body Count Face And Body Analysis\". Price is USD 0.2 per policy aliyun-viapi."},{"id":"aliyun-docmind-image-to-word-submit","canonicalId":"aliyun-docmind-image-to-word-submit","name":"Docmind Image To Word Submit","displayName":"阿里云图片转 Word 提交","description":"Submit an image-to-Word conversion job to Alibaba Cloud Document Mind from public image URLs.","descriptionForModel":"Submit an image-to-Word conversion job to Alibaba Cloud Document Mind from public image URLs.","category":"document-conversion","keywords":["aliyun","document mind","docmind","SubmitConvertImageToWordJob","document ai","document parsing","pdf","office","table extraction","document conversion","阿里云文档智能","文档解析","文档转换"],"useCases":["Call Alibaba Cloud Document Mind through HTTP 402","Automate document parsing, extraction, or conversion workflows","Convert PDF, Word, Excel, images, or scanned documents into structured outputs","Extract tables, fields, and document layout for automation","Submit and poll asynchronous Document Mind jobs"],"limitations":["Only public HTTP or HTTPS file URLs are supported by this Server402 adapter","Local file upload Advance APIs are not exposed","Requires Alibaba Cloud Document Mind RAM permission on the configured AccessKey","Requires a public HTTP or HTTPS file URL","Async submit services usually need a matching result or status query service"],"tags":["aliyun","document-mind","docmind","document-conversion","document ai","document parsing","pdf","office","table extraction","document conversion","阿里云文档智能","文档解析","文档转换"],"method":"POST","endpoint":"/api/tools/aliyun-docmind-image-to-word-submit","endpointAliases":["/api/tools/aliyun-docmind-image-to-word-submit"],"inputTypes":["object","string","boolean","array"],"outputTypes":["object","string"],"inputSchema":{"properties":{"enableEventCallback":{"type":"boolean"},"imageNameExtension":{"type":"string"},"imageNames":{"items":{"type":"string"},"type":"array"},"imageUrls":{"items":{"format":"uri","type":"string"},"type":"array"},"ossBucket":{"type":"string"},"ossEndpoint":{"type":"string"}},"required":["imageUrls"],"type":"object"},"outputSchema":{"properties":{"code":{"type":"string"},"content":{"type":"string"},"data":{"type":"object"},"message":{"type":"string"},"requestId":{"type":"string"}},"required":["requestId","data"],"type":"object"},"exampleRequest":{"imageNameExtension":"png","imageUrls":["https://example.com/page-1.png"]},"exampleResponse":{"code":"200","content":"docmind-20260529-example","data":{"Data":{"Id":"docmind-20260529-example"},"RequestId":"example-request-id"},"message":"success","requestId":"example-request-id"},"pricing":{"amountCents":30,"amountMicros":300000,"currency":"USD","policyId":"docmind-submit-api","settleMode":"settle_first","billingMode":"per_call","maxCalls":1,"allowReuse":false,"bindClient":true},"payment":{"providerId":"x402-base-usdc","provider":"x402_facilitator"},"quality":{"qualityScore":97,"healthStatus":"healthy","healthCheckedAt":"2026-05-29T14:23:39Z","latencyMs":322,"successRate":1,"callCount":9,"executionCount":9,"successCount":9,"errorCount":0,"paymentRequireds":0,"lastCallAt":"2026-07-21T07:46:57Z"},"discovery":{"toolName":"aliyun_docmind_image_to_word_submit","searchText":"aliyun-docmind-image-to-word-submit Docmind Image To Word Submit Submit an image-to-Word conversion job to Alibaba Cloud Document Mind from public image URLs. Submit an image-to-Word conversion job to Alibaba Cloud Document Mind from public image URLs. document-conversion object string boolean array object string aliyun document-mind docmind document-conversion document ai document parsing pdf office table extraction document conversion 阿里云文档智能 文档解析 文档转换 aliyun document mind docmind SubmitConvertImageToWordJob document ai document parsing pdf office table extraction document conversion 阿里云文档智能 文档解析 文档转换 Call Alibaba Cloud Document Mind through HTTP 402 Automate document parsing, extraction, or conversion workflows Convert PDF, Word, Excel, images, or scanned documents into structured outputs Extract tables, fields, and document layout for automation Submit and poll asynchronous Document Mind jobs Only public HTTP or HTTPS file URLs are supported by this Server402 adapter Local file upload Advance APIs are not exposed Requires Alibaba Cloud Document Mind RAM permission on the configured AccessKey Requires a public HTTP or HTTPS file URL Async submit services usually need a matching result or status query service /api/tools/aliyun-docmind-image-to-word-submit","aliases":["Docmind Image To Word Submit","document-conversion","阿里云图片转 Word 提交","aliyun","document-mind","docmind","document ai","document parsing","pdf","office","table extraction","document conversion","阿里云文档智能","文档解析","文档转换","document mind","SubmitConvertImageToWordJob","aliyun-docmind-image-to-word-submit","aliyun_docmind_image_to_word_submit","/api/tools/aliyun-docmind-image-to-word-submit"],"localeHints":["en","zh"],"useCases":["Call Alibaba Cloud Document Mind through HTTP 402","Automate document parsing, extraction, or conversion workflows","Convert PDF, Word, Excel, images, or scanned documents into structured outputs","Extract tables, fields, and document layout for automation","Submit and poll asynchronous Document Mind jobs"],"limitations":["Only public HTTP or HTTPS file URLs are supported by this Server402 adapter","Local file upload Advance APIs are not exposed","Requires Alibaba Cloud Document Mind RAM permission on the configured AccessKey","Requires a public HTTP or HTTPS file URL","Async submit services usually need a matching result or status query service"],"paymentFlow":{"type":"http-402","createPayment":{"method":"POST","url":"/api/payments","bodySchema":{"properties":{"providerId":{"type":"string"},"serviceId":{"description":"Use the canonical service id from the catalog. Legacy internal ids remain accepted for backward compatibility.","type":"string"}},"required":["serviceId"],"type":"object"},"responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"verifyPayment":{"method":"GET","url":"/api/payments/{paymentId}","responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"token":{"header":"X-Payment-Token","mcpArgument":"paymentToken","httpUsage":"Send the paid token in the X-Payment-Token request header when calling /api/tools/*.","mcpUsage":"Pass the paid token as the paymentToken argument when calling the MCP tool."},"requiredResponse":{"status":402,"contentType":"application/json","headers":{"PAYMENT-REQUIRED":"base64/json x402PaymentRequired","PAYMENT-SIGNATURE":"base64/json x402 Base USDC payment payload","X-Payment-Required":"true","X-Payment-Token":"payment.token","X402-Guarantee":"base64url/json Xiao Coin escrow guarantee"},"bodySchema":{"properties":{"accepts":{"items":{"type":"object"},"type":"array"},"error":{"type":"string"},"extensions":{"type":"object"},"payment":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"},"paymentFlow":{"type":"object"},"resource":{"type":"object"},"retry":{"type":"object"},"type":{"const":"payment_required","type":"string"},"x402Version":{"type":"integer"}},"required":["type","error","payment","paymentFlow","retry"],"type":"object"},"x402Version":2,"x402Header":"PAYMENT-REQUIRED","paymentAsset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","paymentNetwork":"eip155:8453"},"retry":{"when":"Retry after paying one accepts[] requirement with Base USDC x402, Xiao Coin AI wallet escrow, or after payment.status is paid and the legacy token has remaining calls.","http":["Preferred x402 flow: call the paid /api/tools/* endpoint once and read accepts[] from the HTTP 402 response body or PAYMENT-REQUIRED header.","Pay one accepts[] requirement with an x402-compatible wallet/facilitator on network eip155:8453 using Base USDC.","Retry the exact same request with PAYMENT-SIGNATURE set to the base64 JSON x402 payment payload.","XIAO flow: pay the accepts[] requirement where asset=XIAO with the AI wallet, then retry the exact same request with X402-Guarantee set to the base64url guarantee JSON.","Legacy token flow: POST /api/payments with serviceId, complete/verify payment, then retry with X-Payment-Token set to payment.token."],"mcp":["Call the tool without paymentToken to receive payment_required structuredContent.","Preferred x402 clients should pay the accepts[] requirement and call the underlying HTTP endpoint with PAYMENT-SIGNATURE.","XIAO-capable agents should pay the XIAO accepts[] requirement through the AI wallet and call the underlying HTTP endpoint with X402-Guarantee.","Legacy MCP clients can complete or verify payment.paymentId, then call the same MCP tool again with paymentToken set to payment.token."],"examples":{"http402":["curl -i https://example.com/api/tools/timestamp","Read accepts[0].network=eip155:8453, accepts[0].asset=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, accepts[0].amount, and accepts[0].payTo.","curl -H 'PAYMENT-SIGNATURE: \u003cbase64-json-x402-payment-payload\u003e' https://example.com/api/tools/timestamp"],"legacyToken":["curl -X POST https://example.com/api/payments -H 'Content-Type: application/json' -d '{\"serviceId\":\"timestamp\"}'","curl -H 'X-Payment-Token: \u003cpayment.token\u003e' https://example.com/api/tools/timestamp"],"mcp":["Call tool timestamp with no paymentToken.","After payment is complete, call timestamp again with paymentToken=\u003cpayment.token\u003e."],"xiao":["curl -i https://example.com/api/tools/timestamp","Read the accepts[] entry with asset=XIAO, create an AI wallet guarantee for merchant_id=aivps.lat and merchant_order_id=payment.paymentId.","curl -H 'X402-Guarantee: \u003cbase64url-guarantee-json\u003e' https://example.com/api/tools/timestamp"]},"failures":["payment required","payment token expired","payment token has no remaining calls","api key required","api key is not allowed to call this service"]}},"paymentHint":"Call POST /api/tools/aliyun-docmind-image-to-word-submit once to receive HTTP 402 with accepts[] requirements, or create a payment with POST /api/payments using serviceId=\"aliyun-docmind-image-to-word-submit\". Pay Base USDC with PAYMENT-SIGNATURE or pay XIAO with X402-Guarantee, then retry the same request.","retryHint":"If the service returns HTTP 402, pay one accepts[] requirement, then retry with PAYMENT-SIGNATURE for Base USDC, X402-Guarantee for Xiao Coin, or X-Payment-Token: payment.token for legacy token flow.","requiredState":"published, enabled"},"outputFormat":"json","requiredContext":["public-file-url","aliyun-credentials"],"matchScore":44,"matchTerms":["word"],"why":"Matched word for \"Docmind Image To Word Submit\". Price is USD 0.3 per policy docmind-submit-api.","whyMatched":"Matched word for \"Docmind Image To Word Submit\". Price is USD 0.3 per policy docmind-submit-api."},{"id":"aliyun-docmind-pdf-to-word-submit","canonicalId":"aliyun-docmind-pdf-to-word-submit","name":"Docmind Pdf To Word Submit","displayName":"阿里云 PDF 转 Word 提交","description":"Submit a PDF-to-Word conversion job to Alibaba Cloud Document Mind from a public file URL.","descriptionForModel":"Submit a PDF-to-Word conversion job to Alibaba Cloud Document Mind from a public file URL.","category":"document-conversion","keywords":["aliyun","document mind","docmind","SubmitConvertPdfToWordJob","document ai","document parsing","pdf","office","table extraction","document conversion","阿里云文档智能","文档解析","文档转换"],"useCases":["Call Alibaba Cloud Document Mind through HTTP 402","Automate document parsing, extraction, or conversion workflows","Convert PDF, Word, Excel, images, or scanned documents into structured outputs","Extract tables, fields, and document layout for automation","Submit and poll asynchronous Document Mind jobs"],"limitations":["Only public HTTP or HTTPS file URLs are supported by this Server402 adapter","Local file upload Advance APIs are not exposed","Requires Alibaba Cloud Document Mind RAM permission on the configured AccessKey","Requires a public HTTP or HTTPS file URL","Async submit services usually need a matching result or status query service"],"tags":["aliyun","document-mind","docmind","document-conversion","document ai","document parsing","pdf","office","table extraction","document conversion","阿里云文档智能","文档解析","文档转换"],"method":"POST","endpoint":"/api/tools/aliyun-docmind-pdf-to-word-submit","endpointAliases":["/api/tools/aliyun-docmind-pdf-to-word-submit"],"inputTypes":["object","string","boolean","uri"],"outputTypes":["object","string"],"inputSchema":{"properties":{"enableEventCallback":{"type":"boolean"},"fileName":{"type":"string"},"fileUrl":{"format":"uri","type":"string"},"forceExportInnerImage":{"type":"boolean"},"formulaEnhancement":{"type":"boolean"},"option":{"type":"string"},"ossBucket":{"type":"string"},"ossEndpoint":{"type":"string"}},"required":["fileUrl"],"type":"object"},"outputSchema":{"properties":{"code":{"type":"string"},"content":{"type":"string"},"data":{"type":"object"},"message":{"type":"string"},"requestId":{"type":"string"}},"required":["requestId","data"],"type":"object"},"exampleRequest":{"fileUrl":"https://example.com/document.pdf"},"exampleResponse":{"code":"200","content":"docmind-20260529-example","data":{"Data":{"Id":"docmind-20260529-example"},"RequestId":"example-request-id"},"message":"success","requestId":"example-request-id"},"pricing":{"amountCents":30,"amountMicros":300000,"currency":"USD","policyId":"docmind-submit-api","settleMode":"settle_first","billingMode":"per_call","maxCalls":1,"allowReuse":false,"bindClient":true},"payment":{"providerId":"x402-base-usdc","provider":"x402_facilitator"},"quality":{"qualityScore":92,"healthStatus":"healthy","healthCheckedAt":"2026-05-29T14:23:39Z","latencyMs":511,"successRate":1,"callCount":4,"executionCount":4,"successCount":4,"errorCount":0,"paymentRequireds":0,"lastCallAt":"2026-07-20T21:06:09Z"},"discovery":{"toolName":"aliyun_docmind_pdf_to_word_submit","searchText":"aliyun-docmind-pdf-to-word-submit Docmind Pdf To Word Submit Submit a PDF-to-Word conversion job to Alibaba Cloud Document Mind from a public file URL. Submit a PDF-to-Word conversion job to Alibaba Cloud Document Mind from a public file URL. document-conversion object string boolean uri object string aliyun document-mind docmind document-conversion document ai document parsing pdf office table extraction document conversion 阿里云文档智能 文档解析 文档转换 aliyun document mind docmind SubmitConvertPdfToWordJob document ai document parsing pdf office table extraction document conversion 阿里云文档智能 文档解析 文档转换 Call Alibaba Cloud Document Mind through HTTP 402 Automate document parsing, extraction, or conversion workflows Convert PDF, Word, Excel, images, or scanned documents into structured outputs Extract tables, fields, and document layout for automation Submit and poll asynchronous Document Mind jobs Only public HTTP or HTTPS file URLs are supported by this Server402 adapter Local file upload Advance APIs are not exposed Requires Alibaba Cloud Document Mind RAM permission on the configured AccessKey Requires a public HTTP or HTTPS file URL Async submit services usually need a matching result or status query service /api/tools/aliyun-docmind-pdf-to-word-submit","aliases":["Docmind Pdf To Word Submit","document-conversion","阿里云 PDF 转 Word 提交","aliyun","document-mind","docmind","document ai","document parsing","pdf","office","table extraction","document conversion","阿里云文档智能","文档解析","文档转换","document mind","SubmitConvertPdfToWordJob","aliyun-docmind-pdf-to-word-submit","aliyun_docmind_pdf_to_word_submit","/api/tools/aliyun-docmind-pdf-to-word-submit"],"localeHints":["en","zh"],"useCases":["Call Alibaba Cloud Document Mind through HTTP 402","Automate document parsing, extraction, or conversion workflows","Convert PDF, Word, Excel, images, or scanned documents into structured outputs","Extract tables, fields, and document layout for automation","Submit and poll asynchronous Document Mind jobs"],"limitations":["Only public HTTP or HTTPS file URLs are supported by this Server402 adapter","Local file upload Advance APIs are not exposed","Requires Alibaba Cloud Document Mind RAM permission on the configured AccessKey","Requires a public HTTP or HTTPS file URL","Async submit services usually need a matching result or status query service"],"paymentFlow":{"type":"http-402","createPayment":{"method":"POST","url":"/api/payments","bodySchema":{"properties":{"providerId":{"type":"string"},"serviceId":{"description":"Use the canonical service id from the catalog. Legacy internal ids remain accepted for backward compatibility.","type":"string"}},"required":["serviceId"],"type":"object"},"responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"verifyPayment":{"method":"GET","url":"/api/payments/{paymentId}","responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"token":{"header":"X-Payment-Token","mcpArgument":"paymentToken","httpUsage":"Send the paid token in the X-Payment-Token request header when calling /api/tools/*.","mcpUsage":"Pass the paid token as the paymentToken argument when calling the MCP tool."},"requiredResponse":{"status":402,"contentType":"application/json","headers":{"PAYMENT-REQUIRED":"base64/json x402PaymentRequired","PAYMENT-SIGNATURE":"base64/json x402 Base USDC payment payload","X-Payment-Required":"true","X-Payment-Token":"payment.token","X402-Guarantee":"base64url/json Xiao Coin escrow guarantee"},"bodySchema":{"properties":{"accepts":{"items":{"type":"object"},"type":"array"},"error":{"type":"string"},"extensions":{"type":"object"},"payment":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"},"paymentFlow":{"type":"object"},"resource":{"type":"object"},"retry":{"type":"object"},"type":{"const":"payment_required","type":"string"},"x402Version":{"type":"integer"}},"required":["type","error","payment","paymentFlow","retry"],"type":"object"},"x402Version":2,"x402Header":"PAYMENT-REQUIRED","paymentAsset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","paymentNetwork":"eip155:8453"},"retry":{"when":"Retry after paying one accepts[] requirement with Base USDC x402, Xiao Coin AI wallet escrow, or after payment.status is paid and the legacy token has remaining calls.","http":["Preferred x402 flow: call the paid /api/tools/* endpoint once and read accepts[] from the HTTP 402 response body or PAYMENT-REQUIRED header.","Pay one accepts[] requirement with an x402-compatible wallet/facilitator on network eip155:8453 using Base USDC.","Retry the exact same request with PAYMENT-SIGNATURE set to the base64 JSON x402 payment payload.","XIAO flow: pay the accepts[] requirement where asset=XIAO with the AI wallet, then retry the exact same request with X402-Guarantee set to the base64url guarantee JSON.","Legacy token flow: POST /api/payments with serviceId, complete/verify payment, then retry with X-Payment-Token set to payment.token."],"mcp":["Call the tool without paymentToken to receive payment_required structuredContent.","Preferred x402 clients should pay the accepts[] requirement and call the underlying HTTP endpoint with PAYMENT-SIGNATURE.","XIAO-capable agents should pay the XIAO accepts[] requirement through the AI wallet and call the underlying HTTP endpoint with X402-Guarantee.","Legacy MCP clients can complete or verify payment.paymentId, then call the same MCP tool again with paymentToken set to payment.token."],"examples":{"http402":["curl -i https://example.com/api/tools/timestamp","Read accepts[0].network=eip155:8453, accepts[0].asset=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, accepts[0].amount, and accepts[0].payTo.","curl -H 'PAYMENT-SIGNATURE: \u003cbase64-json-x402-payment-payload\u003e' https://example.com/api/tools/timestamp"],"legacyToken":["curl -X POST https://example.com/api/payments -H 'Content-Type: application/json' -d '{\"serviceId\":\"timestamp\"}'","curl -H 'X-Payment-Token: \u003cpayment.token\u003e' https://example.com/api/tools/timestamp"],"mcp":["Call tool timestamp with no paymentToken.","After payment is complete, call timestamp again with paymentToken=\u003cpayment.token\u003e."],"xiao":["curl -i https://example.com/api/tools/timestamp","Read the accepts[] entry with asset=XIAO, create an AI wallet guarantee for merchant_id=aivps.lat and merchant_order_id=payment.paymentId.","curl -H 'X402-Guarantee: \u003cbase64url-guarantee-json\u003e' https://example.com/api/tools/timestamp"]},"failures":["payment required","payment token expired","payment token has no remaining calls","api key required","api key is not allowed to call this service"]}},"paymentHint":"Call POST /api/tools/aliyun-docmind-pdf-to-word-submit once to receive HTTP 402 with accepts[] requirements, or create a payment with POST /api/payments using serviceId=\"aliyun-docmind-pdf-to-word-submit\". Pay Base USDC with PAYMENT-SIGNATURE or pay XIAO with X402-Guarantee, then retry the same request.","retryHint":"If the service returns HTTP 402, pay one accepts[] requirement, then retry with PAYMENT-SIGNATURE for Base USDC, X402-Guarantee for Xiao Coin, or X-Payment-Token: payment.token for legacy token flow.","requiredState":"published, enabled"},"outputFormat":"json","requiredContext":["public-file-url","aliyun-credentials"],"matchScore":44,"matchTerms":["word"],"why":"Matched word for \"Docmind Pdf To Word Submit\". Price is USD 0.3 per policy docmind-submit-api.","whyMatched":"Matched word for \"Docmind Pdf To Word Submit\". Price is USD 0.3 per policy docmind-submit-api."},{"id":"aliyun-docmind-page-num","canonicalId":"aliyun-docmind-page-num","name":"Docmind Page Num","displayName":"阿里云文档页数查询","description":"Fetch page count metadata from Alibaba Cloud Document Mind by business ID.","descriptionForModel":"Fetch page count metadata from Alibaba Cloud Document Mind by business ID.","category":"document-utility","keywords":["aliyun","document mind","docmind","GetPageNum","document ai","document parsing","pdf","office","table extraction","document conversion","阿里云文档智能","文档解析","文档转换"],"useCases":["Call Alibaba Cloud Document Mind through HTTP 402","Automate document parsing, extraction, or conversion workflows","Convert PDF, Word, Excel, images, or scanned documents into structured outputs","Extract tables, fields, and document layout for automation","Submit and poll asynchronous Document Mind jobs"],"limitations":["Only public HTTP or HTTPS file URLs are supported by this Server402 adapter","Local file upload Advance APIs are not exposed","Requires Alibaba Cloud Document Mind RAM permission on the configured AccessKey","Requires a public HTTP or HTTPS file URL","Async submit services usually need a matching result or status query service"],"tags":["aliyun","document-mind","docmind","document-utility","document ai","document parsing","pdf","office","table extraction","document conversion","阿里云文档智能","文档解析","文档转换"],"method":"POST","endpoint":"/api/tools/aliyun-docmind-page-num","endpointAliases":["/api/tools/aliyun-docmind-page-num"],"inputTypes":["object","string"],"outputTypes":["object","string"],"inputSchema":{"properties":{"bizId":{"type":"string"}},"required":["bizId"],"type":"object"},"outputSchema":{"properties":{"code":{"type":"string"},"content":{"type":"string"},"data":{"type":"object"},"message":{"type":"string"},"requestId":{"type":"string"}},"required":["requestId","data"],"type":"object"},"exampleRequest":{"bizId":"docmind-biz-example"},"exampleResponse":{"code":"200","content":"docmind-20260529-example","data":{"Data":{"Id":"docmind-20260529-example"},"RequestId":"example-request-id"},"message":"success","requestId":"example-request-id"},"pricing":{"amountCents":5,"amountMicros":50000,"currency":"USD","policyId":"docmind-query-api","settleMode":"settle_first","billingMode":"per_call","maxCalls":1,"allowReuse":false,"bindClient":true},"payment":{"providerId":"x402-base-usdc","provider":"x402_facilitator"},"quality":{"qualityScore":98,"healthStatus":"healthy","healthCheckedAt":"2026-05-29T14:23:39Z","latencyMs":478,"successRate":1,"callCount":10,"executionCount":10,"successCount":10,"errorCount":0,"paymentRequireds":0,"lastCallAt":"2026-07-21T07:44:12Z"},"discovery":{"toolName":"aliyun_docmind_page_num","searchText":"aliyun-docmind-page-num Docmind Page Num Fetch page count metadata from Alibaba Cloud Document Mind by business ID. Fetch page count metadata from Alibaba Cloud Document Mind by business ID. document-utility object string object string aliyun document-mind docmind document-utility document ai document parsing pdf office table extraction document conversion 阿里云文档智能 文档解析 文档转换 aliyun document mind docmind GetPageNum document ai document parsing pdf office table extraction document conversion 阿里云文档智能 文档解析 文档转换 Call Alibaba Cloud Document Mind through HTTP 402 Automate document parsing, extraction, or conversion workflows Convert PDF, Word, Excel, images, or scanned documents into structured outputs Extract tables, fields, and document layout for automation Submit and poll asynchronous Document Mind jobs Only public HTTP or HTTPS file URLs are supported by this Server402 adapter Local file upload Advance APIs are not exposed Requires Alibaba Cloud Document Mind RAM permission on the configured AccessKey Requires a public HTTP or HTTPS file URL Async submit services usually need a matching result or status query service /api/tools/aliyun-docmind-page-num","aliases":["Docmind Page Num","document-utility","阿里云文档页数查询","aliyun","document-mind","docmind","document ai","document parsing","pdf","office","table extraction","document conversion","阿里云文档智能","文档解析","文档转换","document mind","GetPageNum","aliyun-docmind-page-num","aliyun_docmind_page_num","/api/tools/aliyun-docmind-page-num"],"localeHints":["en","zh"],"useCases":["Call Alibaba Cloud Document Mind through HTTP 402","Automate document parsing, extraction, or conversion workflows","Convert PDF, Word, Excel, images, or scanned documents into structured outputs","Extract tables, fields, and document layout for automation","Submit and poll asynchronous Document Mind jobs"],"limitations":["Only public HTTP or HTTPS file URLs are supported by this Server402 adapter","Local file upload Advance APIs are not exposed","Requires Alibaba Cloud Document Mind RAM permission on the configured AccessKey","Requires a public HTTP or HTTPS file URL","Async submit services usually need a matching result or status query service"],"paymentFlow":{"type":"http-402","createPayment":{"method":"POST","url":"/api/payments","bodySchema":{"properties":{"providerId":{"type":"string"},"serviceId":{"description":"Use the canonical service id from the catalog. Legacy internal ids remain accepted for backward compatibility.","type":"string"}},"required":["serviceId"],"type":"object"},"responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"verifyPayment":{"method":"GET","url":"/api/payments/{paymentId}","responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"token":{"header":"X-Payment-Token","mcpArgument":"paymentToken","httpUsage":"Send the paid token in the X-Payment-Token request header when calling /api/tools/*.","mcpUsage":"Pass the paid token as the paymentToken argument when calling the MCP tool."},"requiredResponse":{"status":402,"contentType":"application/json","headers":{"PAYMENT-REQUIRED":"base64/json x402PaymentRequired","PAYMENT-SIGNATURE":"base64/json x402 Base USDC payment payload","X-Payment-Required":"true","X-Payment-Token":"payment.token","X402-Guarantee":"base64url/json Xiao Coin escrow guarantee"},"bodySchema":{"properties":{"accepts":{"items":{"type":"object"},"type":"array"},"error":{"type":"string"},"extensions":{"type":"object"},"payment":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"},"paymentFlow":{"type":"object"},"resource":{"type":"object"},"retry":{"type":"object"},"type":{"const":"payment_required","type":"string"},"x402Version":{"type":"integer"}},"required":["type","error","payment","paymentFlow","retry"],"type":"object"},"x402Version":2,"x402Header":"PAYMENT-REQUIRED","paymentAsset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","paymentNetwork":"eip155:8453"},"retry":{"when":"Retry after paying one accepts[] requirement with Base USDC x402, Xiao Coin AI wallet escrow, or after payment.status is paid and the legacy token has remaining calls.","http":["Preferred x402 flow: call the paid /api/tools/* endpoint once and read accepts[] from the HTTP 402 response body or PAYMENT-REQUIRED header.","Pay one accepts[] requirement with an x402-compatible wallet/facilitator on network eip155:8453 using Base USDC.","Retry the exact same request with PAYMENT-SIGNATURE set to the base64 JSON x402 payment payload.","XIAO flow: pay the accepts[] requirement where asset=XIAO with the AI wallet, then retry the exact same request with X402-Guarantee set to the base64url guarantee JSON.","Legacy token flow: POST /api/payments with serviceId, complete/verify payment, then retry with X-Payment-Token set to payment.token."],"mcp":["Call the tool without paymentToken to receive payment_required structuredContent.","Preferred x402 clients should pay the accepts[] requirement and call the underlying HTTP endpoint with PAYMENT-SIGNATURE.","XIAO-capable agents should pay the XIAO accepts[] requirement through the AI wallet and call the underlying HTTP endpoint with X402-Guarantee.","Legacy MCP clients can complete or verify payment.paymentId, then call the same MCP tool again with paymentToken set to payment.token."],"examples":{"http402":["curl -i https://example.com/api/tools/timestamp","Read accepts[0].network=eip155:8453, accepts[0].asset=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, accepts[0].amount, and accepts[0].payTo.","curl -H 'PAYMENT-SIGNATURE: \u003cbase64-json-x402-payment-payload\u003e' https://example.com/api/tools/timestamp"],"legacyToken":["curl -X POST https://example.com/api/payments -H 'Content-Type: application/json' -d '{\"serviceId\":\"timestamp\"}'","curl -H 'X-Payment-Token: \u003cpayment.token\u003e' https://example.com/api/tools/timestamp"],"mcp":["Call tool timestamp with no paymentToken.","After payment is complete, call timestamp again with paymentToken=\u003cpayment.token\u003e."],"xiao":["curl -i https://example.com/api/tools/timestamp","Read the accepts[] entry with asset=XIAO, create an AI wallet guarantee for merchant_id=aivps.lat and merchant_order_id=payment.paymentId.","curl -H 'X402-Guarantee: \u003cbase64url-guarantee-json\u003e' https://example.com/api/tools/timestamp"]},"failures":["payment required","payment token expired","payment token has no remaining calls","api key required","api key is not allowed to call this service"]}},"paymentHint":"Call POST /api/tools/aliyun-docmind-page-num once to receive HTTP 402 with accepts[] requirements, or create a payment with POST /api/payments using serviceId=\"aliyun-docmind-page-num\". Pay Base USDC with PAYMENT-SIGNATURE or pay XIAO with X402-Guarantee, then retry the same request.","retryHint":"If the service returns HTTP 402, pay one accepts[] requirement, then retry with PAYMENT-SIGNATURE for Base USDC, X402-Guarantee for Xiao Coin, or X-Payment-Token: payment.token for legacy token flow.","requiredState":"published, enabled"},"outputFormat":"json","requiredContext":["public-file-url","aliyun-credentials"],"matchScore":22,"matchTerms":["word","count"],"why":"Matched word, count for \"Docmind Page Num\". Price is USD 0.05 per policy docmind-query-api.","whyMatched":"Matched word, count for \"Docmind Page Num\". Price is USD 0.05 per policy docmind-query-api."}],"agents":[{"id":"word-count","name":"Word Count","description":"Count Unicode characters, whitespace-delimited words, and lines in a text string.","endpoint":"/api/tools/word-count","method":"POST","auth_type":"api_key + x402_facilitator http_402","billing_method":"per_call","pricing":{"amountCents":5,"amountMicros":50000,"currency":"USD","policyId":"tiny-api","settleMode":"settle_first","billingMode":"per_call","maxCalls":1,"allowReuse":false,"bindClient":true},"input_schema":{"properties":{"text":{"type":"string"}},"required":["text"],"type":"object"},"output_schema":{"properties":{"characters":{"type":"integer"},"lines":{"type":"integer"},"words":{"type":"integer"}},"type":"object"},"tags":["text","utility","analysis"],"category":"text-analysis"},{"id":"person-counting","name":"Detect Body Count Face And Body Analysis","description":"Use this visual AI API when the task needs counting people in an image. Send the schema keys exactly as listed (ImageURL); required parameters: ImageURL.","endpoint":"/api/tools/person-counting","method":"POST","auth_type":"api_key + x402_facilitator http_402","billing_method":"per_call","pricing":{"amountCents":20,"amountMicros":200000,"currency":"USD","policyId":"aliyun-viapi","settleMode":"settle_first","billingMode":"per_call","maxCalls":1,"allowReuse":false,"bindClient":true},"input_schema":{"description":"Use Alibaba Cloud RPC parameter names exactly, for example ImageURL, ImageUrl, Url, URL, JobId, or Tasks depending on the service.","properties":{"ImageURL":{"description":"Public http or https image URL accepted by the Alibaba Cloud API.","format":"uri","type":"string"}},"required":["ImageURL"],"type":"object"},"output_schema":{"properties":{"code":{"type":"string"},"content":{"type":"string"},"data":{"type":"object"},"message":{"type":"string"},"requestId":{"type":"string"}},"required":["requestId","data"],"type":"object"},"tags":["computer-vision","face-body","face-analysis","body-analysis"],"category":"face-body"},{"id":"aliyun-docmind-image-to-word-submit","name":"Docmind Image To Word Submit","description":"Submit an image-to-Word conversion job to Alibaba Cloud Document Mind from public image URLs.","endpoint":"/api/tools/aliyun-docmind-image-to-word-submit","method":"POST","auth_type":"api_key + x402_facilitator http_402","billing_method":"per_call","pricing":{"amountCents":30,"amountMicros":300000,"currency":"USD","policyId":"docmind-submit-api","settleMode":"settle_first","billingMode":"per_call","maxCalls":1,"allowReuse":false,"bindClient":true},"input_schema":{"properties":{"enableEventCallback":{"type":"boolean"},"imageNameExtension":{"type":"string"},"imageNames":{"items":{"type":"string"},"type":"array"},"imageUrls":{"items":{"format":"uri","type":"string"},"type":"array"},"ossBucket":{"type":"string"},"ossEndpoint":{"type":"string"}},"required":["imageUrls"],"type":"object"},"output_schema":{"properties":{"code":{"type":"string"},"content":{"type":"string"},"data":{"type":"object"},"message":{"type":"string"},"requestId":{"type":"string"}},"required":["requestId","data"],"type":"object"},"tags":["aliyun","document-mind","docmind","document-conversion","document ai","document parsing","pdf","office","table extraction","document conversion","阿里云文档智能","文档解析","文档转换"],"category":"document-conversion"},{"id":"aliyun-docmind-pdf-to-word-submit","name":"Docmind Pdf To Word Submit","description":"Submit a PDF-to-Word conversion job to Alibaba Cloud Document Mind from a public file URL.","endpoint":"/api/tools/aliyun-docmind-pdf-to-word-submit","method":"POST","auth_type":"api_key + x402_facilitator http_402","billing_method":"per_call","pricing":{"amountCents":30,"amountMicros":300000,"currency":"USD","policyId":"docmind-submit-api","settleMode":"settle_first","billingMode":"per_call","maxCalls":1,"allowReuse":false,"bindClient":true},"input_schema":{"properties":{"enableEventCallback":{"type":"boolean"},"fileName":{"type":"string"},"fileUrl":{"format":"uri","type":"string"},"forceExportInnerImage":{"type":"boolean"},"formulaEnhancement":{"type":"boolean"},"option":{"type":"string"},"ossBucket":{"type":"string"},"ossEndpoint":{"type":"string"}},"required":["fileUrl"],"type":"object"},"output_schema":{"properties":{"code":{"type":"string"},"content":{"type":"string"},"data":{"type":"object"},"message":{"type":"string"},"requestId":{"type":"string"}},"required":["requestId","data"],"type":"object"},"tags":["aliyun","document-mind","docmind","document-conversion","document ai","document parsing","pdf","office","table extraction","document conversion","阿里云文档智能","文档解析","文档转换"],"category":"document-conversion"},{"id":"aliyun-docmind-page-num","name":"Docmind Page Num","description":"Fetch page count metadata from Alibaba Cloud Document Mind by business ID.","endpoint":"/api/tools/aliyun-docmind-page-num","method":"POST","auth_type":"api_key + x402_facilitator http_402","billing_method":"per_call","pricing":{"amountCents":5,"amountMicros":50000,"currency":"USD","policyId":"docmind-query-api","settleMode":"settle_first","billingMode":"per_call","maxCalls":1,"allowReuse":false,"bindClient":true},"input_schema":{"properties":{"bizId":{"type":"string"}},"required":["bizId"],"type":"object"},"output_schema":{"properties":{"code":{"type":"string"},"content":{"type":"string"},"data":{"type":"object"},"message":{"type":"string"},"requestId":{"type":"string"}},"required":["requestId","data"],"type":"object"},"tags":["aliyun","document-mind","docmind","document-utility","document ai","document parsing","pdf","office","table extraction","document conversion","阿里云文档智能","文档解析","文档转换"],"category":"document-utility"}],"demandCapture":{"queryRecorded":true,"demandBearing":true,"status":"published-service-matches","recommendedAction":"inspect-service-schema-and-call-for-payment","message":"This search query has been recorded as demand-bearing catalog search traffic. Use the published services first; if the service fit is incomplete, submit requestAccessBody so Server402 can prioritize the missing API.","requestAccessUrl":"https://x402vip.com/api/planned-services/request-access","requestAccessBody":{"query":"word-count","serviceId":"","task":"Describe the exact input data, desired output schema, freshness, volume, budget, and whether a published service failed to fit.","useCase":"AI/Agent searched for: word-count"},"plannedCatalogUrl":"https://x402vip.com/api/demand-capture","notes":["Every non-admin /api/catalog/search?q=... request is appended to natural_traffic.jsonl and aggregated in /api/admin/demand-intents.","Submitting requestAccessBody adds a stronger commercial/early-access signal than search alone.","Planned API candidates are not callable yet; use /api/catalog services for currently callable paid APIs."]},"nextActions":["Inspect services[].inputSchema, services[].outputSchema, services[].pricing, and services[].discovery.paymentFlow.","Call the selected /api/tools/* endpoint once without payment to receive HTTP 402 payment requirements, then retry after payment.","If services are missing or too broad, inspect demandCapture.matchedPlannedServices.","POST demandCapture.requestAccessBody to demandCapture.requestAccessUrl to record a stronger early-access demand signal."],"payment":{"paymentHeader":"X-Payment-Token","createPayment":"/api/payments","verifyPayment":"/api/payments/{paymentId}","token":{"header":"X-Payment-Token","mcpArgument":"paymentToken","httpUsage":"Send the paid token in the X-Payment-Token request header when calling /api/tools/*.","mcpUsage":"Pass the paid token as the paymentToken argument when calling the MCP tool."},"requiredResponse":{"status":402,"contentType":"application/json","headers":{"PAYMENT-REQUIRED":"base64/json x402PaymentRequired","PAYMENT-SIGNATURE":"base64/json x402 Base USDC payment payload","X-Payment-Required":"true","X-Payment-Token":"payment.token","X402-Guarantee":"base64url/json Xiao Coin escrow guarantee"},"bodySchema":{"properties":{"accepts":{"items":{"type":"object"},"type":"array"},"error":{"type":"string"},"extensions":{"type":"object"},"payment":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"},"paymentFlow":{"type":"object"},"resource":{"type":"object"},"retry":{"type":"object"},"type":{"const":"payment_required","type":"string"},"x402Version":{"type":"integer"}},"required":["type","error","payment","paymentFlow","retry"],"type":"object"},"x402Version":2,"x402Header":"PAYMENT-REQUIRED","paymentAsset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","paymentNetwork":"eip155:8453"},"retry":{"when":"Retry after paying one accepts[] requirement with Base USDC x402, Xiao Coin AI wallet escrow, or after payment.status is paid and the legacy token has remaining calls.","http":["Preferred x402 flow: call the paid /api/tools/* endpoint once and read accepts[] from the HTTP 402 response body or PAYMENT-REQUIRED header.","Pay one accepts[] requirement with an x402-compatible wallet/facilitator on network eip155:8453 using Base USDC.","Retry the exact same request with PAYMENT-SIGNATURE set to the base64 JSON x402 payment payload.","XIAO flow: pay the accepts[] requirement where asset=XIAO with the AI wallet, then retry the exact same request with X402-Guarantee set to the base64url guarantee JSON.","Legacy token flow: POST /api/payments with serviceId, complete/verify payment, then retry with X-Payment-Token set to payment.token."],"mcp":["Call the tool without paymentToken to receive payment_required structuredContent.","Preferred x402 clients should pay the accepts[] requirement and call the underlying HTTP endpoint with PAYMENT-SIGNATURE.","XIAO-capable agents should pay the XIAO accepts[] requirement through the AI wallet and call the underlying HTTP endpoint with X402-Guarantee.","Legacy MCP clients can complete or verify payment.paymentId, then call the same MCP tool again with paymentToken set to payment.token."],"examples":{"http402":["curl -i https://example.com/api/tools/timestamp","Read accepts[0].network=eip155:8453, accepts[0].asset=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, accepts[0].amount, and accepts[0].payTo.","curl -H 'PAYMENT-SIGNATURE: \u003cbase64-json-x402-payment-payload\u003e' https://example.com/api/tools/timestamp"],"legacyToken":["curl -X POST https://example.com/api/payments -H 'Content-Type: application/json' -d '{\"serviceId\":\"timestamp\"}'","curl -H 'X-Payment-Token: \u003cpayment.token\u003e' https://example.com/api/tools/timestamp"],"mcp":["Call tool timestamp with no paymentToken.","After payment is complete, call timestamp again with paymentToken=\u003cpayment.token\u003e."],"xiao":["curl -i https://example.com/api/tools/timestamp","Read the accepts[] entry with asset=XIAO, create an AI wallet guarantee for merchant_id=aivps.lat and merchant_order_id=payment.paymentId.","curl -H 'X402-Guarantee: \u003cbase64url-guarantee-json\u003e' https://example.com/api/tools/timestamp"]},"failures":["payment required","payment token expired","payment token has no remaining calls","api key required","api key is not allowed to call this service"]},"flow":{"type":"http-402","createPayment":{"method":"POST","url":"/api/payments","bodySchema":{"properties":{"providerId":{"type":"string"},"serviceId":{"description":"Use the canonical service id from the catalog. Legacy internal ids remain accepted for backward compatibility.","type":"string"}},"required":["serviceId"],"type":"object"},"responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"verifyPayment":{"method":"GET","url":"/api/payments/{paymentId}","responseSchema":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"}},"token":{"header":"X-Payment-Token","mcpArgument":"paymentToken","httpUsage":"Send the paid token in the X-Payment-Token request header when calling /api/tools/*.","mcpUsage":"Pass the paid token as the paymentToken argument when calling the MCP tool."},"requiredResponse":{"status":402,"contentType":"application/json","headers":{"PAYMENT-REQUIRED":"base64/json x402PaymentRequired","PAYMENT-SIGNATURE":"base64/json x402 Base USDC payment payload","X-Payment-Required":"true","X-Payment-Token":"payment.token","X402-Guarantee":"base64url/json Xiao Coin escrow guarantee"},"bodySchema":{"properties":{"accepts":{"items":{"type":"object"},"type":"array"},"error":{"type":"string"},"extensions":{"type":"object"},"payment":{"properties":{"amountCents":{"type":"integer"},"amountMicros":{"type":"integer"},"billingMode":{"type":"string"},"clientId":{"type":"string"},"currency":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"internalServiceId":{"description":"Legacy internal service id, included only for backward compatibility.","type":"string"},"maxCalls":{"type":"integer"},"paidAt":{"format":"date-time","type":"string"},"payTo":{"type":"string"},"paymentId":{"type":"string"},"provider":{"type":"string"},"providerId":{"type":"string"},"remainingCalls":{"type":"integer"},"serviceId":{"description":"Canonical public service id.","type":"string"},"status":{"type":"string"},"token":{"type":"string"},"usedCalls":{"type":"integer"}},"type":"object"},"paymentFlow":{"type":"object"},"resource":{"type":"object"},"retry":{"type":"object"},"type":{"const":"payment_required","type":"string"},"x402Version":{"type":"integer"}},"required":["type","error","payment","paymentFlow","retry"],"type":"object"},"x402Version":2,"x402Header":"PAYMENT-REQUIRED","paymentAsset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","paymentNetwork":"eip155:8453"},"retry":{"when":"Retry after paying one accepts[] requirement with Base USDC x402, Xiao Coin AI wallet escrow, or after payment.status is paid and the legacy token has remaining calls.","http":["Preferred x402 flow: call the paid /api/tools/* endpoint once and read accepts[] from the HTTP 402 response body or PAYMENT-REQUIRED header.","Pay one accepts[] requirement with an x402-compatible wallet/facilitator on network eip155:8453 using Base USDC.","Retry the exact same request with PAYMENT-SIGNATURE set to the base64 JSON x402 payment payload.","XIAO flow: pay the accepts[] requirement where asset=XIAO with the AI wallet, then retry the exact same request with X402-Guarantee set to the base64url guarantee JSON.","Legacy token flow: POST /api/payments with serviceId, complete/verify payment, then retry with X-Payment-Token set to payment.token."],"mcp":["Call the tool without paymentToken to receive payment_required structuredContent.","Preferred x402 clients should pay the accepts[] requirement and call the underlying HTTP endpoint with PAYMENT-SIGNATURE.","XIAO-capable agents should pay the XIAO accepts[] requirement through the AI wallet and call the underlying HTTP endpoint with X402-Guarantee.","Legacy MCP clients can complete or verify payment.paymentId, then call the same MCP tool again with paymentToken set to payment.token."],"examples":{"http402":["curl -i https://example.com/api/tools/timestamp","Read accepts[0].network=eip155:8453, accepts[0].asset=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, accepts[0].amount, and accepts[0].payTo.","curl -H 'PAYMENT-SIGNATURE: \u003cbase64-json-x402-payment-payload\u003e' https://example.com/api/tools/timestamp"],"legacyToken":["curl -X POST https://example.com/api/payments -H 'Content-Type: application/json' -d '{\"serviceId\":\"timestamp\"}'","curl -H 'X-Payment-Token: \u003cpayment.token\u003e' https://example.com/api/tools/timestamp"],"mcp":["Call tool timestamp with no paymentToken.","After payment is complete, call timestamp again with paymentToken=\u003cpayment.token\u003e."],"xiao":["curl -i https://example.com/api/tools/timestamp","Read the accepts[] entry with asset=XIAO, create an AI wallet guarantee for merchant_id=aivps.lat and merchant_order_id=payment.paymentId.","curl -H 'X402-Guarantee: \u003cbase64url-guarantee-json\u003e' https://example.com/api/tools/timestamp"]},"failures":["payment required","payment token expired","payment token has no remaining calls","api key required","api key is not allowed to call this service"]}}}}
