{"uid":"cap_WcME4AEFbTBu_EK8aRH_c","slug":"one-engine-text-token-word-counter-0cb6d985","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/t4?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.0015","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.0015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jdIEjvwEFLJZk7nf7egtL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0015","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":"How many words are in this text? 'The quick brown fox jumps over the lazy dog. It was a bright cold day in April, and the clocks were striking thirteen.'","exampleUseCases":[{"title":"Pre-submission word count check","prompt":"Can you count how many words are in this essay draft before I submit it? Here it is: 'Artificial intelligence is transforming the way we work, communicate, and learn. Over the past decade...' [full text]"},{"title":"Content quota enforcement for agent","prompt":"Before sending this generated blog post to the publisher, count the words in it to make sure it hits at least 800 — here's the full text."},{"title":"Billing and usage audit","prompt":"I need to know exactly how many words are in each of these customer transcripts so I can estimate processing costs — start with this one: 'Hello, thank you for calling support...'"}],"resultDescription":"Returns a JSON object containing the word count (and potentially token count) for the submitted text. The response schema is open-ended (additionalProperties: true), so additional metadata about the text may be included.","failureModes":["Text exceeds 50,000 character limit — request rejected or truncated","Empty text field returns zero or error","Payment failure via x402 on Base blocks the call","Malformed JSON body causes 400 error","Cloudflare Worker timeout for very large inputs near the character limit"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap ($0.0015 USDC), pay-per-call word count for text up to 50,000 characters and are already operating in an x402/Base payment environment. Prefer it over rolling your own counter when you need a reliable, API-native solution that integrates with autonomous agent payment flows on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:30.870Z","isFirstParty":false,"canonicalSlug":"one-engine-text-token-word-counter-9981bf78"}