{"slug":"x402-gateway-blackwoodstate8-workers-dev-v1-sentiment-984c79","title":"Use when you need sentiment analysis of text such as reviews, comments or headli","host":"x402-gateway.blackwoodstate8.workers.dev","method":"POST","resource":"https://x402-gateway.blackwoodstate8.workers.dev/v1/sentiment","category":"other","description":"Use when you need sentiment analysis of text such as reviews, comments or headlines in English. Do not use for neutral or emotion labels, non-English text or aspect-level sentiment. Returns JSON with the sentiment of English text (positive or negative with a confidence score) from DistilBERT SST-2 o","price_listed":0.004,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":3,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"texts":["The checkout was fast and the support team was great.","The package arrived broken and nobody answered my emails."]},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"text":{"description":"One English text to classify, e.g. The checkout was fast (up to 2000 characters)","maxLength":2000,"minLength":1,"type":"string"},"texts":{"description":"Or a batch of up to 20 English texts, e.g. [\"Great support\", \"Broken on arrival\"]","items":{"maxLength":2000,"minLength":1,"type":"string"},"maxItems":20,"minItems":1,"type":"array"}},"required":[],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"additionalProperties":false,"properties":{"model":{"type":"string"},"next":{"additionalProperties":false,"description":"Suggested next paid call in the same family (call it in a loop when the task continues)","properties":{"method":{"enum":["GET","POST"],"type":"string"},"sample":{"description":"Free fixed sample of the whole family","type":"string"},"service":{"description":"Service id of the suggested next paid call","type":"string"},"tool":{"description":"MCP tool name of the same call","type":"string"},"url":{"description":"Paid route of the next call","type":"string"},"useWhen":{"description":"When the next call is the right one","type":"string"}},"required":["service","tool","method","url","useWhen","sample"],"type":"object"},"results":{"items":{"additionalProperties":false,"properties":{"label":{"enum":["positive","negative"],"type":"string"},"negative":{"type":"number"},"positive":{"type":"number"},"score":{"type":"number"},"text":{"type":"string"}},"required":["text","label","score","positive","negative"],"type":"object"},"type":"array"}},"required":["results","model"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Use when you need sentiment analysis of text such as reviews, comments or headlines in English. Do not use for neutral or emotion labels, non-English text or aspect-level sentiment. Returns JSON with the sentiment of English text (positive or negative 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 per call. Typical response time 1500 ms (p95). Category: Inference.","last_updated":"2026-10-18T15:36:41.939Z","schemes":["exact","upto"]}