{"service":"sentiment","version":"1.0.0","title":"Sentiment analysis","description":"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 per call. Typical response time 1500 ms (p95). Category: Inference.","paid":{"method":"POST","url":"https://x402-gateway.blackwoodstate8.workers.dev/v1/sentiment","scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","amount":"4000","amountUsdc":"0.004","payTo":"0xd25cA2Ea2a5017b4297157b0635E3FDBB26A326A","maxTimeoutSeconds":60},"input":{"schema":{"type":"object","properties":{"text":{"description":"One English text to classify, e.g. The checkout was fast (up to 2000 characters)","type":"string","minLength":1,"maxLength":2000},"texts":{"description":"Or a batch of up to 20 English texts, e.g. [\"Great support\", \"Broken on arrival\"]","minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":2000}}}},"example":{"texts":["The checkout was fast and the support team was great.","The package arrived broken and nobody answered my emails."]}},"output":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"label":{"type":"string","enum":["positive","negative"]},"score":{"type":"number"},"positive":{"type":"number"},"negative":{"type":"number"}},"required":["text","label","score","positive","negative"],"additionalProperties":false}},"model":{"type":"string"},"next":{"type":"object","properties":{"service":{"type":"string","description":"Service id of the suggested next paid call"},"tool":{"type":"string","description":"MCP tool name of the same call"},"method":{"type":"string","enum":["GET","POST"]},"url":{"type":"string","description":"Paid route of the next call"},"useWhen":{"type":"string","description":"When the next call is the right one"},"sample":{"type":"string","description":"Free fixed sample of the whole family"}},"required":["service","tool","method","url","useWhen","sample"],"additionalProperties":false,"description":"Suggested next paid call in the same family (call it in a loop when the task continues)"}},"required":["results","model"],"additionalProperties":false},"example":{"results":[{"text":"The checkout was fast and the support team was great.","label":"positive","score":0.9999,"positive":0.9999,"negative":0.0001},{"text":"The package arrived broken and nobody answered my emails.","label":"negative","score":0.9998,"positive":0.0002,"negative":0.9998}],"model":"@cf/huggingface/distilbert-sst-2-int8"}},"mcp":{"url":"https://x402-gateway.blackwoodstate8.workers.dev/mcp","tool":"blackwood_text_sentiment"},"openapi":"https://x402-gateway.blackwoodstate8.workers.dev/openapi.json","status":"https://x402-gateway.blackwoodstate8.workers.dev/status.json"}