77trust / 100

Text Classify

by manylives.me in Other

x402 APIPassing, checked 1 h ago

Classify a text into topic categories: from your own list of labels, or open topics if none given, with confidence.

POST https://manylives.me/paid/text/classify

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
411 ms typical, 487 ms slowest 5%
Last check
1 h ago
Next check
any minute now

How to call it

# bash or zsh: see the payment challenge (nothing is charged)
curl -g -i -X POST 'https://manylives.me/paid/text/classify' \
  -H 'content-type: application/json' \
  --data-raw '{"labels":"finance,sport,technology,health","text":"The central bank kept interest rates unchanged and signalled one more rise this year."}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fmanylives.me%2Fpaid%2Ftext%2Fclassify
const res = await pay("https://manylives.me/paid/text/classify", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: "{\"labels\":\"finance,sport,technology,health\",\"text\":\"The central bank kept interest rates unchanged and signalled one more rise this year.\"}",
});
console.log(await res.json());

Example input

{
  "labels": "finance,sport,technology,health",
  "text": "The central bank kept interest rates unchanged and signalled one more rise this year."
}

Example output

{
  "categories": [
    {
      "confidence": 0.9,
      "label": "finance"
    }
  ]
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed402396 ms$0.01
5 h agoPassed402472 ms$0.01
9 h agoPassed402402 ms$0.01
13 h agoPassed402455 ms$0.01
17 h agoPassed402365 ms$0.01
20 h agoPassed402446 ms$0.01
24 h agoPassed402411 ms$0.01
27 h agoPassed402387 ms$0.01
31 h agoPassed402487 ms$0.01
35 h agoPassed402530 ms$0.01
38 h agoPassed402368 ms$0.01
42 h agoPassed402395 ms$0.01
46 h agoPassed402411 ms$0.01
2 days agoPassed402454 ms$0.01
2 days agoPassed402418 ms$0.01