{"uid":"cap_ReTZimStNclc8KvpkWoRT","slug":"one-engine-text-character-counter-f03a837f","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/t8?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.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_T3R885a9ttcHvbmMwMIyW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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 (up to 50,000 characters) and returns a token/character metric.","exampleAgentPrompt":"How many characters are in this text: 'The quick brown fox jumps over the lazy dog. This is a sample paragraph that I need to measure before sending it to an API with a character limit.'?","exampleUseCases":[{"title":"Pre-flight content length check","prompt":"Before I send this blog post to the content API, can you count how many characters it has? Here's the full text: [paste of article]. I need to make sure it's under 5000 characters."},{"title":"Billing estimation for text jobs","prompt":"I'm about to process this document through a pay-per-character service and need to estimate the cost — can you count the characters in this text for me: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit...' (full document)?"},{"title":"Form field validation helper","prompt":"My form only allows 280 characters in the bio field. Can you count the characters in this bio text and tell me if it fits: 'I am a software engineer based in San Francisco with 10 years of experience building distributed systems and open-source tools.'?"}],"resultDescription":"Returns a JSON object containing the character count (and potentially token count) for the submitted text, helping agents verify text length and measure usage metrics.","failureModes":["Text exceeds 50,000 character limit — request rejected","Empty text field — validation error returned","Payment not processed via x402 — 402 Payment Required returned","Malformed JSON body — 400 Bad Request"],"whenToPreferThis":"Choose this endpoint when you need a cheap, fast, pay-per-call character count for text up to 50,000 characters and are already operating within the x402/Base payment ecosystem. Ideal for agents that need to batch-check text lengths at scale without a subscription.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:09.735Z","isFirstParty":false,"canonicalSlug":"one-engine-text-character-counter-f03a837f"}