80trust / 100

Ai Classify

by x402-seller-0ay3.onrender.com in AI models & inference

x402 APIPassing, checked 44 min ago

Text classification (sentiment analysis, topic tagging, intent detection, moderation labels...) into one of your own labels, with a confidence score, via Claude Haiku 4.5. JSON body: {text: string (max 8000 chars), labels: string[] (2 to 20 labels)}.

POST https://x402-seller-0ay3.onrender.com/api/ai/classify

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
101 ms typical, 140 ms slowest 5%
Last check
44 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://x402-seller-0ay3.onrender.com/api/ai/classify" \
  -H "content-type: application/json" \
  -d '{"labels":["positive","negative","neutral"],"text":"The product arrived broken and support never replied."}'
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%2Fx402-seller-0ay3.onrender.com%2Fapi%2Fai%2Fclassify
const res = await pay("https://x402-seller-0ay3.onrender.com/api/ai/classify", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"labels":["positive","negative","neutral"],"text":"The product arrived broken and support never replied."}),
});
console.log(await res.json());

Example input

{
  "labels": [
    "positive",
    "negative",
    "neutral"
  ],
  "text": "The product arrived broken and support never replied."
}

Example output

{
  "confidence": 0.94,
  "label": "negative"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
44 min agoPassed402143 ms$0.01
4 h agoPassed40294 ms$0.01
8 h agoPassed402120 ms$0.01
11 h agoPassed402110 ms$0.01
16 h agoPassed402100 ms$0.01
19 h agoPassed40288 ms$0.01
23 h agoPassed402101 ms$0.01
26 h agoPassed402140 ms$0.01
29 h agoPassed402111 ms$0.01
35 h agoPassed40253 ms$0.01