{"uid":"cap_sHda7qD71SgixSiEIyXMZ","slug":"one-engine-text-token-word-count-t5-bb9a5d63","name":"ONE Engine Text Token Word Count (T5)","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v3/text-token/words/t5?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","description":"Text up to 50000 characters"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0025","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.0025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Ul0F_R-cb4tFWkMCyrVBt","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Counts the number of words in a given text string using a T5-based tokenization approach, returning word-level token statistics.","exampleAgentPrompt":"Count the words in this text for me: 'The quick brown fox jumped over the lazy dog. It was a bright and sunny day in the meadow.'","exampleUseCases":[{"title":"Essay word count check","prompt":"Can you count how many words are in this essay draft I wrote? Here it is: 'Artificial intelligence has transformed the way we interact with technology. From voice assistants to recommendation engines, AI is embedded in our daily lives. The challenge now is ensuring these systems remain transparent, fair, and accountable...'"},{"title":"Content length validation before publishing","prompt":"Before I post this blog article, can you tell me exactly how many words it has? The text is: 'Climate change represents one of the most pressing challenges of our era. Scientists around the world have documented rising temperatures, shifting weather patterns, and accelerating ice melt...'"},{"title":"Comparing word counts across documents","prompt":"I need to know the word count of this paragraph so I can compare it to my target of 500 words: 'The history of computing stretches back to the earliest mechanical calculators, through the era of vacuum tubes and transistors, into the modern age of microprocessors and cloud computing...'"}],"resultDescription":"Returns a JSON object containing word count and related token metrics derived from T5-based processing of the input text. The exact fields are flexible but expected to include the total word or token count for the submitted text.","failureModes":["Text exceeds 50000 character limit — request rejected or truncated","Empty text field — may return zero count or validation error","Payment failure via x402 — 402 response requiring USDC payment on Base","Malformed JSON request body — 400 error","Service unavailability on Cloudflare Workers edge — 500 or timeout"],"whenToPreferThis":"Choose this endpoint when you need a cheap, fast, pay-per-call word count or T5-based token count for text up to 50,000 characters, especially within an autonomous agent pipeline already using x402 micropayments on Base. It is well-suited for lightweight text measurement tasks where you don't need a full NLP pipeline or embeddings — just a quick word/token count statistic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:41:36.058Z","isFirstParty":false,"canonicalSlug":"one-engine-text-token-word-count-t5-bb9a5d63"}