{"uid":"cap_qt7JOpdM_Ueb_jeFd9m1S","slug":"jigsawstack-withzero-ai-sentiment-131ee7ef","name":"JigsawStack Sentiment Classification","description":"Sentiment classification on a text snippet.","url":"https://jigsawstack.withzero.ai/v1/sentiment","method":"POST","headers":{},"bodySchema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"The text snippet to classify sentiment on."}},"additionalProperties":false},"responseSchema":{"type":"object","required":["success","sentiment","_usage","log_id"],"properties":{"_usage":{"type":"object","required":["input_tokens","output_tokens","inference_time_tokens","total_tokens"],"properties":{"input_tokens":{"type":"number"},"total_tokens":{"type":"number"},"output_tokens":{"type":"number"},"inference_time_tokens":{"type":"number"}}},"log_id":{"type":"string"},"success":{"type":"boolean"},"sentiment":{"type":"object","required":["emotion","sentiment","score","sentences"],"properties":{"score":{"type":"number"},"emotion":{"type":"string"},"sentences":{"type":"array","items":{"type":"object","required":["text","emotion","sentiment","score"],"properties":{"text":{"type":"string"},"score":{"type":"number"},"emotion":{"type":"string"},"sentiment":{"type":"string"}}}},"sentiment":{"type":"string"}}}}},"example":{"request":{"text":"I absolutely loved this product! The quality is excellent and the customer service was incredibly helpful. Highly recommend!"},"response":{"_usage":{"input_tokens":23,"total_tokens":3014,"output_tokens":72,"inference_time_tokens":2919},"log_id":"e5c7edd9-cc6e-4f9c-b4d0-367a83756cf9","success":true,"sentiment":{"score":0.95,"emotion":"happiness","sentences":[{"text":"I absolutely loved this product!","score":0.9,"emotion":"happiness","sentiment":"positive"},{"text":"The quality is excellent and the customer service was incredibly helpful.","score":0.95,"emotion":"happiness","sentiment":"positive"},{"text":"Highly recommend!","score":0.9,"emotion":"happiness","sentiment":"positive"}],"sentiment":"positive"}}},"exampleRequest":{"text":"I absolutely loved this product! The quality is excellent and the customer service was incredibly helpful. Highly recommend!"},"tags":[],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_q-KSvMfo5FBm4hnknBhzZ","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":"jigsawstack.withzero.ai","brandSlug":"jigsawstack-withzero-ai-mpp","brandBaseUrl":"https://jigsawstack.withzero.ai","brandDocsUrl":null,"whatItDoes":"Classifies the sentiment of a given text snippet (e.g. positive, negative, neutral) using AI NLP.","exampleAgentPrompt":"Classify the sentiment of this customer review and tell me whether it's positive, negative, or neutral: \"The onboarding was smooth but the billing support took forever and left me really frustrated.\"","exampleUseCases":null,"resultDescription":"Returns a sentiment classification (e.g. positive, negative, neutral) for the input text, along with a confidence score or probability breakdown indicating how strongly the model associates the text with each sentiment class.","failureModes":["Empty or missing text input returns a 400 validation error","Text exceeding length limits may be rejected or truncated","Non-English text may yield lower accuracy or unexpected classification","Ambiguous or sarcastic text may be misclassified with low confidence","Network timeout or upstream JigsawStack API unavailability returns a 5xx error","Insufficient USDC balance for payment results in a payment/authorization failure"],"whenToPreferThis":"Choose this endpoint when you need fast, low-cost per-call sentiment classification on individual text snippets without managing your own NLP infrastructure. Ideal for agents processing customer feedback, social media posts, support tickets, or any short text where emotional tone is needed. Best when integrated into a micro-payment-friendly workflow using USDC via MPP/Tempo.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:39:33.876Z","isFirstParty":true}