{"uid":"cap_WyezPK4i4l0JLwgY3bobl","slug":"one-engine-text-token-character-counter-1730d0bc","name":"ONE Engine Text Token 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/t6?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.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Bmkn12TczTPL6bJ4NKfj1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","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 token/character metrics 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. This is a sample paragraph used to test text length measurement tools.'?","exampleUseCases":[{"title":"Pre-flight API payload sizing","prompt":"Before I send this article to the summarization API, can you count exactly how many characters it contains so I know if it's under the 50,000 limit? Here's the full text: [article body]"},{"title":"Social media post character check","prompt":"I've drafted this LinkedIn post and need to know the exact character count before publishing — can you count the characters in: 'Excited to announce our new product launch! After 18 months of hard work, our team has built something truly special. Read more at our blog.'"},{"title":"Content field validation for a CMS","prompt":"We have a CMS field that caps at 500 characters — can you check how many characters are in this description I wrote: 'Our award-winning artisan bakery has been serving the local community since 1987, offering fresh sourdough, pastries, and custom celebration cakes baked daily with locally sourced ingredients.'"}],"resultDescription":"Returns an object containing character count and possibly token-level metrics for the submitted text, helping agents validate text length or plan downstream API usage.","failureModes":["Text exceeding 50,000 characters may be rejected or truncated","Empty or missing 'text' field returns a validation error","Network timeouts on the Cloudflare Worker edge node","x402 payment failure if USDC balance is insufficient or payment header is malformed"],"whenToPreferThis":"Use this endpoint when you need a cheap, pay-per-call character counting or text measurement utility without spinning up your own infrastructure. At $0.004 USDC per call it is cost-effective for sporadic agent tasks that need to validate text length before submitting to downstream services with character limits.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:03.060Z","isFirstParty":false,"canonicalSlug":"one-engine-text-token-character-counter-1730d0bc"}