Tools / AI
AI Classify $0.002 / call
Zero-shot classify text into your own labels.
GET /v1/classify
Classifies text into a caller-supplied set of labels (zero-shot, no training). The answer is forced back into your exact label set, so an agent can route on it deterministically — triage, tagging, intent detection.
Parameters
text required | Text to classify (max 8000 chars) |
labels required | Comma-separated labels, e.g. spam,not_spam |
Example
macOS / Linuxcurl -s "https://quartermaster.surewhynot.app/v1/classify?text=My%20order%20never%20arrived%20and%20I%20want%20a%20refund&labels=billing,shipping,technical,other"
Windows (cmd or PowerShell)
curl.exe -s "https://quartermaster.surewhynot.app/v1/classify?text=My%20order%20never%20arrived%20and%20I%20want%20a%20refund&labels=billing,shipping,technical,other"
Unpaid, these return 402 Payment Required with the payment details in the header (add -i to see them). curl.exe ships with Windows 10+ and works in cmd and both PowerShell versions. To actually pay, use an x402 client (see Connect) or call it as the MCP tool. Cost: $0.002 per call.
FAQ
What if the model picks a label not in my list?
It can't — the result is validated against your labels and the call errors rather than returning an off-list label, so you can trust it for routing.
How do I pay for this endpoint?
Call it with no payment and you receive HTTP 402 with machine-readable payment requirements. Attach a USDC payment on Base with any x402 client (for example @x402/fetch) and retry — the whole loop is two requests. This call costs $0.002 in USDC.
Do I need an account or API key?
No. There are no accounts, logins, or API keys anywhere in Quartermaster. Payment is per call over the x402 protocol; your wallet is your identity.
Can I call this as an MCP tool instead?
Yes. Quartermaster is also an MCP server at /mcp, so any MCP client (Claude Code, Claude.ai, Cursor) can mount this tool. See /connect for setup.