Text sentiment
text_sentimentClassify text sentiment (fast sub-200ms DistilBERT SST-2 positive/negative, or 3-way positive/neutral/negative with mode="detailed") and optional custom zero-shot labels. $0.001 per call over x402 (USDC on Arc, Base or Solana, or XNT on X1). 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_sentiment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Optional: fast (default DistilBERT) or detailed (3-way positive/neutral/negative). | |
| text | Yes | Text to classify (1 to 8000 characters). | |
| labels | No | Optional 2-12 comma-separated custom labels for zero-shot classification. | |
| payment | No | signed x402 payment payload (PAYMENT-SIGNATURE). |