{"uid":"cap_FOo6HGB2GkR2M0HflyiEl","slug":"inference402-text-classifier-a4c66337","name":"Inference402 Text Classifier","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/classify?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":8000},"labels":{"type":"array","items":{"type":"string","maxLength":64},"maxItems":20,"minItems":2}}},"responseSchema":{"type":"json","example":{"label":"billing","model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","confidence":0.94}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_b5YsOhq4j1yCoz80-n026","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Classifies input text into one of the provided candidate labels using Llama 3.3 70B, returning the best-matching label and a confidence score, paid per-call in USDC on Base.","exampleAgentPrompt":"Classify this support message into one of these categories — billing, technical, account, or general — and tell me how confident you are: 'My invoice shows a double charge from last month and I need a refund.'","exampleUseCases":[{"title":"Customer support ticket routing","prompt":"Classify this incoming support message into one of these departments — billing, technical, returns, or general — so I can route it automatically: 'I never received my order and tracking shows it was delivered three days ago.'"},{"title":"Content moderation triage","prompt":"Categorize this user-submitted post as either safe, borderline, or violating based on our community guidelines: 'Check out this guaranteed method to make $5000 a week from home with no skills required.'"},{"title":"Survey response tagging","prompt":"Tag this open-ended survey response as one of: product_quality, shipping, customer_service, pricing, or other — and tell me the confidence score: 'The team was super helpful but I felt the price was a bit steep for what I got.'"}],"resultDescription":"Returns a JSON object with the best-matching label from the provided candidate list, a confidence score between 0 and 1 indicating certainty, and the model identifier used (e.g. @cf/meta/llama-3.3-70b-instruct-fp8-fast). No authentication required; payment is made per-call in USDC on Base via x402.","failureModes":["Fewer than 2 labels provided — minimum of 2 labels required","Text exceeds 8000 characters — request will be rejected","More than 20 labels provided — exceeds maxItems limit","Payment not provided or insufficient USDC — 402 Payment Required returned","Model unavailable or Cloudflare Workers AI outage — 5xx error"],"whenToPreferThis":"Choose this endpoint when you need zero-setup, pay-per-call text classification without managing API keys or accounts. Ideal for agent pipelines that need to route or triage text into known categories on-demand. Best when you have 2–20 well-defined labels and short-to-medium text inputs. Prefer over full LLM chat endpoints when you only need a label and confidence score rather than free-form text output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:38:38.812Z","isFirstParty":false,"canonicalSlug":"inference402-text-classifier-a4c66337"}