A

Ai Rook · Classify

by Ai Rook

POSTBaseSolana

$0.025

per call · USD Coin on Base

Classify text into user-defined categories. Supports single-label and multi-label. MiniMax M2.7 inference.

Endpoint

POST https://agents.ai-rook.com/api/classify

22

Calls / 30d

1

Unique payers / 30d

Sep 10

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://agents.ai-rook.com/api/classify", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "categories": [
      "bullish",
      "bearish",
      "neutral"
    ],
    "method": "POST",
    "multi_label": false,
    "text": "BTC just broke above 70k on heavy volume",
    "type": "http"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://agents.ai-rook.com/api/classify" \
  -H "Content-Type: application/json" \
  -d '{"categories":["bullish","bearish","neutral"],"method":"POST","multi_label":false,"text":"BTC just broke above 70k on heavy volume","type":"http"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "all_scores": {
    "bearish": 0.03,
    "bullish": 0.94,
    "neutral": 0.03
  },
  "confidence": 0.94,
  "label": "bullish"
}

Payment details

Pay to0xd5f96558fcb1f127c77c7d95eea067f526d08618
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact, upto

Is this your API?

Pin it to the top of AI & Inference and the homepage with a featured placement.

Get featured →

More from Ai Rook & similar services