Skip to content
Fourohtwo

x402-gateway.blackwoodstate8.workers.dev/v1/sentiment

Use when you need sentiment analysis, text sentiment or opinion mining of reviews, comments or headlines in English. Do not use for neutral or emotion labels, non-English text or aspect-level sentiment. Returns JSON with sentiment analysis of English text: a positive or negative label with a confidence score, from DistilBERT SST-2 on Workers AI, for one text or a batch of up to 20 for 0.004 USDC p

BaseAnswering
POSThttps://x402-gateway.blackwoodstate8.workers.dev/v1/sentiment

Uptime100% of 1 check 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

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://x402-gateway.blackwoodstate8.workers.dev/v1/sentiment", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"texts":["The checkout was fast and the support team was great.","The package arrived broken and nobody answered my emails."]}),
});
console.log(await res.json());

Example input

{
  "texts": [
    "The checkout was fast and the support team was great.",
    "The package arrived broken and nobody answered my emails."
  ]
}