Text classification with your own labels for agent pipelines
agentsvc.io/api/v1/proxy/text-classify
Text classification with your own labels for agent pipelines: route support tickets, qualify leads, tag feedback, sort emails or moderate comments. Send the text (up to 6,000 characters) and 2 to 30 labels, optionally with a description each; get the best label with a confidence from 0 to 1 and a one-sentence reason, or every label that applies with multi_label. Labels are enforced by a JSON schem
POST
https://agentsvc.io/api/v1/proxy/text-classifyUptime100% of 4 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agentsvc.io/api/v1/proxy/text-classify", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"text":"Love the app! Would be great if it had dark mode. Also, why was I charged twice this month?","labels":["bug report","feature request","billing question","praise","spam"],"multi_label":true}),
});
console.log(await res.json());Example input
{
"text": "Love the app! Would be great if it had dark mode. Also, why was I charged twice this month?",
"labels": [
"bug report",
"feature request",
"billing question",
"praise",
"spam"
],
"multi_label": true
}