Sentiment analysis (positive / negative)
mpp-ai.fmf-x402.workers.dev/mpp/sentiment
Sentiment analysis (positive / negative) — Binary sentiment (POSITIVE / NEGATIVE with confidence) for up to 25 texts per call, using DistilBERT SST-2 (Apache-2.0) on Cloudflare Workers AI. English works best. Free sample: add ?sample=1. Price $0.0005. A call with no input uses the documented defaults.
GET
https://mpp-ai.fmf-x402.workers.dev/mpp/sentimentUptime100% of 4 checks 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
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://mpp-ai.fmf-x402.workers.dev/mpp/sentiment?text=I+love+how+fast+this+API+is.");
console.log(await res.json());Example input
{
"text": "I love how fast this API is."
}More from FMF Tools mpp-aiProvider status
- mpp-ai.fmf-x402.workers.dev/mpp/embeddingsText embeddings (multilingual) — Dense vector embeddings for up to 100 texts per call (BAAI bge-m3, 1024 dimensions, 100+ languages, MIT licence), L2-normalised for cosine similarity. OpenAI-style response (data[i].embedding). Price $0.0005. A call with no input uses the documented defaults.0.0005
- mpp-ai.fmf-x402.workers.dev/mpp/embeddings/bge-baseText embeddings: bge-base-en-v1.5 (768 dimensions) — Dense vector embeddings with bge-base-en-v1.5 (768 dimensions, MIT) on Cloudflare Workers AI, English. Up to 100 texts per call (2,000 characters each, 20,000 in total), L2-normalised for cosine similarity. OpenAI-style response (data[i].embedding). Free sample: add ?sample=1. Price $0.0005. A call with no input uses the documented defaults.0.0005
- mpp-ai.fmf-x402.workers.dev/mpp/embeddings/bge-largeText embeddings: bge-large-en-v1.5 (1024 dimensions) — Dense vector embeddings with bge-large-en-v1.5 (1024 dimensions, MIT) on Cloudflare Workers AI, English, highest quality of the BGE English models. Up to 100 texts per call (2,000 characters each, 20,000 in total), L2-normalised for cosine similarity. OpenAI-style response (data[i].embedding). Free sample: add ?sample=1. Price $0.0005. A call 0.0005
- mpp-ai.fmf-x402.workers.dev/mpp/embeddings/bge-smallText embeddings: bge-small-en-v1.5 (384 dimensions) — Dense vector embeddings with bge-small-en-v1.5 (384 dimensions, MIT) on Cloudflare Workers AI, English, fastest. Up to 100 texts per call (2,000 characters each, 20,000 in total), L2-normalised for cosine similarity. OpenAI-style response (data[i].embedding). Free sample: add ?sample=1. Price $0.0005. A call with no input uses the documented de0.0005
- mpp-ai.fmf-x402.workers.dev/mpp/embeddings/qwen3Text embeddings: qwen3-embedding-0.6b (1024 dimensions) — Dense vector embeddings with qwen3-embedding-0.6b (1024 dimensions, Apache-2.0) on Cloudflare Workers AI, 100+ languages. Up to 100 texts per call (2,000 characters each, 20,000 in total), L2-normalised for cosine similarity. OpenAI-style response (data[i].embedding). Free sample: add ?sample=1. Price $0.0005. A call with no input uses the 0.0005
- mpp-ai.fmf-x402.workers.dev/mpp/keywordsKeyword and key-phrase extraction — Extract ranked key phrases (RAKE-style co-occurrence scoring with stopword splitting) from up to 50,000 characters. Returns phrase, score and count. Deterministic, instant, no model call. English stopwords; works on most Latin-script text. Free sample: add ?sample=1. Price $0.0005. A call with no input uses the documented defaults.0.0005
- mpp-ai.fmf-x402.workers.dev/mpp/language/detectLanguage detection (80+ languages) — Detect the language of up to 100 texts per call (franc trigram model, 80+ languages, MIT). Returns the ISO 639-1 code where one exists, the ISO 639-3 code, the score margin over the runner-up and ranked candidates (relative scores, best = 1). Short texts (<20 chars) are flagged as low confidence. No model call, instant. Free sample: add ?sample=1. Price $0.00050.0005
- mpp-ai.fmf-x402.workers.dev/mpp/pii/detectDetect and redact PII and secrets in text — Find emails, phone numbers, credit card numbers (Luhn-checked), IBANs, US SSNs, IPv4/IPv6, Ethereum addresses, API keys (Stripe, AWS, GitHub, Slack) and token-bearing URLs in text, with offsets, and return a redacted copy. Pattern based, deterministic, nothing stored or logged (only counts). Free sample: add ?sample=1. Price $0.0005. A call with no input0.0005
