Text classify
text_classifyClassify text into 12 built-in topics (crypto_defi, ai_agents, software_dev, security_privacy, finance_markets, ecommerce_retail, legal_compliance, support_ticket, marketing_sales, news_world, science_research, general) or custom labels (mode=fast|ai). $0.001 per call over x402 or X-API-Key. Call once without payment for terms, then call again with payment.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "text_classify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | fast (deterministic, default) or ai (Workers AI). | |
| text | Yes | Text to classify. | |
| labels | No | Optional comma-separated custom labels (2 to 20). | |
| payment | No | signed x402 payment payload (PAYMENT-SIGNATURE). |