Invocation
- Service ID
word-count- Method
POST- Endpoint
/api/tools/word-count- Legacy Endpoint
none- MCP Tool
word_count- Price
- XIAO 0.05
Paid API service
Count Unicode characters, whitespace-delimited words, and lines in a text string.
word-countPOST/api/tools/word-countnoneword_countCall 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/word-count 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="word-count".
{
"exampleRequest": {
"text": "hello paid api"
},
"exampleResponse": {
"characters": 14,
"lines": 1,
"words": 3
},
"inputSchema": {
"properties": {
"text": {
"type": "string"
}
},
"required": [
"text"
],
"type": "object"
},
"outputSchema": {
"properties": {
"characters": {
"type": "integer"
},
"lines": {
"type": "integer"
},
"words": {
"type": "integer"
}
},
"type": "object"
}
}