Text Classification
classifyText classification with your own custom labels (2-20) - categorize a support ticket, a review, or any text into the best-fitting label, with a confidence score and an alternate label. Powered by Jev, falling back to a Groq-hosted LLM if Jev is slow or unavailable - under 4.5s guaranteed. Try GET /classify/sample.
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>",
"labels": "<labels>"
},
"name": "classify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to classify, up to 4000 characters. | |
| labels | Yes | 2 to 20 candidate labels, your own choice of wording. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | The best-fitting label. | |
| engine | Yes | Which engine answered: Jev (primary) or the Groq-hosted LLM fallback. | |
| probability | Yes | Confidence in `label`, 0 to 1. | |
| x402_receipt | No | Billing and provenance receipt for this call. | |
| alternate_label | No | The second-best label, if any. | |
| alternate_probability | No | Confidence in `alternate_label`, if known. |