78trust / 100
Classify
by paygentic in Email & messaging
x402 APIPassing, checked 26 min ago
Classify text into exactly one of your own labels using an LLM. Body: text (max 4000 chars), labels (2-20 strings).
POST https://api.discoverdmc.cloud/classify
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 495 ms typical, 651 ms slowest 5%
- Last check
- 26 min ago
- Next check
- in 3 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.discoverdmc.cloud/classify" \
-H "content-type: application/json" \
-d '{"labels":["complaint","praise","question"],"text":"The battery died after two days and support ignored me."}'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%2Fapi.discoverdmc.cloud%2Fclassify
const res = await pay("https://api.discoverdmc.cloud/classify", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"labels":["complaint","praise","question"],"text":"The battery died after two days and support ignored me."}),
});
console.log(await res.json());Example input
{
"labels": [
"complaint",
"praise",
"question"
],
"text": "The battery died after two days and support ignored me."
}Example output
{
"label": "complaint"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 26 min ago | Passed | 402 | 778 ms | $0.005 |
| 5 h ago | Passed | 402 | 527 ms | $0.005 |
| 8 h ago | Passed | 402 | 469 ms | $0.005 |
| 12 h ago | Passed | 402 | 437 ms | $0.005 |
| 15 h ago | Passed | 402 | 479 ms | $0.005 |
| 18 h ago | Passed | 402 | 495 ms | $0.005 |
| 23 h ago | Passed | 402 | 651 ms | $0.005 |