{"uid":"cap_so74AbXaZB0FSEvjpDIzI","slug":"inference402-sentiment-analysis-d2f1323b","name":"Inference402 Sentiment Analysis","description":"Pay-per-call AI inference for agents: chat (Llama 3.3 70B / 3.1 8B), structured JSON, summarize, translate (incl. Egyptian Arabic), extract, classify, sentiment, keywords, rewrite, embeddings, moderation, vision and speech-to-text. USDC on Base mainnet over x402. No API key, no account.","url":"https://inference402.worlddata402.workers.dev/v1/sentiment?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":8000}}},"responseSchema":{"type":"json","example":{"model":"@cf/meta/llama-3.1-8b-instruct-fp8","score":0.82,"sentiment":"positive"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_YtMQBIfIXvKnlyLwP0raC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a text string and returns a sentiment label (positive/negative/neutral) with a numeric confidence score, powered by Llama 3.1 8B, paid per-call via USDC on Base.","exampleAgentPrompt":"Can you analyze the sentiment of this customer review and give me a score: 'The product arrived quickly and works perfectly, but the packaging was a bit flimsy'?","exampleUseCases":[{"title":"Customer review sentiment triage","prompt":"I've got a batch of product reviews coming in — can you analyze the sentiment of this one and tell me if it's positive, negative, or neutral with a confidence score: 'Great quality but took three weeks to arrive, very disappointing'?"},{"title":"Social media tone monitoring","prompt":"Check the sentiment of this tweet for me and give me a score: 'Can't believe how bad the support experience was — waited 2 hours and got zero help. Never again.'"},{"title":"Support ticket prioritization","prompt":"I need to know if this support message is negative so I can escalate it — can you run sentiment analysis on: 'I've been waiting five days for a response and my issue still isn't resolved, this is unacceptable'?"}],"resultDescription":"Returns a JSON object with three fields: 'sentiment' (a label such as 'positive', 'negative', or 'neutral'), 'score' (a float between 0 and 1 indicating confidence), and 'model' (the specific Llama model variant used, e.g. '@cf/meta/llama-3.1-8b-instruct-fp8').","failureModes":["Text exceeds 8000 character limit — request rejected","Payment not received or USDC balance insufficient — 402 Payment Required response","Empty or missing 'text' parameter — likely returns an error or unexpected sentiment","Model inference timeout on very dense or complex text","Non-English text may yield lower accuracy sentiment scores (model is optimized for English)"],"whenToPreferThis":"Choose this endpoint when you need lightweight, pay-as-you-go sentiment analysis with no API key or account setup, paying $0.002 USDC per call on Base mainnet. Ideal for agents that need occasional or burst sentiment classification without committing to a subscription, or for autonomous agents that can self-fund inference via x402. Prefer over heavier NLP pipelines when a fast scalar sentiment score (label + confidence) is sufficient and you do not need entity-level or aspect-level breakdown.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:37:38.474Z","isFirstParty":false,"canonicalSlug":"inference402-sentiment-analysis-d2f1323b"}