{"uid":"cap_0S6MpW4hyRXrv-KJ6Vyy_","slug":"one-engine-text-token-word-counter-be2e1a36","name":"ONE Engine Text Token Word Counter","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/t3?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.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9Wur2y2p7rUo49mnqnlCj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","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 (tokens) in a given text string of up to 50,000 characters.","exampleAgentPrompt":"Can you count the number of words in this text for me: 'The quick brown fox jumped over the lazy dog near the river bank'?","exampleUseCases":[{"title":"Pre-submission essay word count","prompt":"Before I submit this essay, count how many words are in it: 'Artificial intelligence has transformed modern industries by automating repetitive tasks, enabling faster decision-making, and unlocking new creative possibilities that were previously unimaginable for most organizations.'"},{"title":"Content length validation for API limits","prompt":"I need to know how many words are in this product description before I send it through my pipeline: 'Our premium ergonomic chair features lumbar support, adjustable armrests, breathable mesh fabric, and a five-year warranty backed by our dedicated customer service team.'"},{"title":"Social media copy word check","prompt":"Count the words in this tweet draft so I can make sure it's concise enough: 'Excited to announce our new feature launch this Friday — sign up now for early access and get 30% off your first month.'"}],"resultDescription":"Returns a JSON object containing the word count (and potentially token breakdown) of the submitted text input.","failureModes":["Text exceeds 50,000 character limit — request rejected","Empty text field — may return zero or an error","Malformed JSON body — 400 bad request","Payment not included or insufficient — 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call word or token count for arbitrary text, especially within autonomous agent workflows on Base using x402 micropayments. Ideal for cost-sensitive pipelines that need to measure text length programmatically without spinning up a local NLP library.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:35.511Z","isFirstParty":false,"canonicalSlug":"one-engine-text-token-word-counter-9981bf78"}