Classify text into your labels
Zero-shot classification: give text and 2-20 candidate labels, get the best label, a short reason and a ranking. Use for routing tickets, tagging content, intent detection and moderation queues.
Inputs
| Name | Type | Description |
|---|---|---|
text (required) | string | Text to classify, up to 8,000 characters |
labels (required) | string | Comma-separated candidate labels (2-20) |
Request
Over HTTP, with a card key from /credits:
curl -H "Authorization: Bearer adt_…" "https://agent-data-tools.revmesh2074.workers.dev/ai/classify?text=My%20card%20was%20charged%20twice%20for%20the%20same%20order.&labels=billing%2Cshipping%2Ctechnical%2Cother"
Or one of your 25 free calls, no key:
curl "https://agent-data-tools.revmesh2074.workers.dev/ai/classify?text=My%20card%20was%20charged%20twice%20for%20the%20same%20order.&labels=billing%2Cshipping%2Ctechnical%2Cother&trial=1"
Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum, Monad, World Chain or Tempo) and retries.
Example result
{
"label": "billing",
"reason": "The customer reports a duplicate charge.",
"ranking": [
"billing",
"other",
"technical",
"shipping"
],
"model": "@cf/meta/llama-3.1-8b-instruct-fp8"
}
From an AI agent (MCP)
Add the MCP server to Claude, Cursor or any MCP client. This tool is ai_classify, and the first 25 successful calls are free:
https://agent-data-tools.revmesh2074.workers.dev/mcp