{"uid":"cap_AVqgbqEryHvufId5WgtLl","slug":"one-engine-text-character-counter-dc193f99","name":"ONE Engine Text Character 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/characters/t2?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.0007","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.0007/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0007","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0007","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_h9rDdh_0C2y_3klYjFMAN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0007","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 characters in a given text string, returning a character count for up to 50,000 characters of input.","exampleAgentPrompt":"How many characters 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":"Validate input before LLM submission","prompt":"Before I send this article draft to the summarization API, can you count how many characters it has so I know if it fits within the 4000-character limit?"},{"title":"Check tweet or post character length","prompt":"Count the characters in this caption I wrote: 'Excited to share our latest update — new features, better performance, and a smoother experience for everyone. Drop a comment and let us know what you think!'"},{"title":"Audit document size for processing pipeline","prompt":"I need to know the character count of this contract text before routing it through our document pipeline — can you run it through the character counter?"}],"resultDescription":"Returns a JSON object containing the character count of the submitted text, computed server-side for up to 50,000 characters of input.","failureModes":["Text exceeds 50,000 character limit — request rejected or truncated","Missing required 'text' field in request body — validation error returned","Payment failure via x402 on Base — HTTP 402 returned before processing","Empty string input — returns count of zero","Network timeout on Cloudflare Worker edge node"],"whenToPreferThis":"Use this endpoint when you need a cheap, reliable, pay-per-call character count for arbitrary text strings — especially in autonomous agent pipelines where you need to validate or gate text length before passing to downstream APIs with character limits. At $0.0007 USDC per call via x402, it is ideal for high-frequency, low-cost text metering tasks without requiring a subscription or API key.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:30.325Z","isFirstParty":false,"canonicalSlug":"one-engine-text-character-counter-f03a837f"}