{"uid":"cap__hDloN8oS_nvE3GQKXQMf","slug":"one-engine-text-token-character-counter-t1-bc895294","name":"ONE Engine Text Token Character Counter (t1)","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/t1?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.0005","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.0005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MZM5lGBBwwzpv4OB3x-4V","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0005","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 token/character metric for up to 50,000 characters of input.","exampleAgentPrompt":"Count the number of characters in this text for me: 'The quick brown fox jumps over the lazy dog. This is a sample paragraph used to test character counting.'","exampleUseCases":[{"title":"Pre-submission character length validation","prompt":"Before I submit this article to the CMS, can you count how many characters it has? Here's the full text: [article body up to 50,000 characters]. I need to make sure it's under the platform's limit."},{"title":"API quota check before processing","prompt":"I'm about to send this text to a language model with a strict character limit — can you count the characters in this passage so I know if I need to trim it?"},{"title":"Billing estimation for text services","prompt":"I'm charged per character by my translation service. Can you count the characters in this document so I can estimate the cost before I submit it?"}],"resultDescription":"Returns a JSON object containing the character count (and potentially token-related metrics) for the submitted text. The response schema is open-ended (additionalProperties: true), so it may include supplementary counts or metadata alongside the primary character count figure.","failureModes":["Text exceeds 50,000 character limit — request rejected or truncated","Empty text field — may return zero count or validation error","Missing required 'text' field — returns 400 bad request","Payment not settled via x402 — returns 402 Payment Required","Network timeout on the Cloudflare Worker — returns 5xx error"],"whenToPreferThis":"Choose this endpoint when you need a cheap, pay-per-call character counting utility with no subscription overhead, especially in autonomous agent pipelines running on Base via x402. At $0.0005 USDC per call, it's cost-effective for frequent, lightweight text measurement tasks where you want to avoid building your own counting logic or hitting rate-limited free-tier APIs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:10.585Z","isFirstParty":false,"canonicalSlug":"one-engine-text-token-character-counter-t1-bc895294"}