{"uid":"cap_6kE_Gckh6Yi77bxoKiqoj","slug":"one-engine-text-character-counter-8fb82932","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/t7?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.0065","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.0065/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0065","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0065","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_OlPYVDOJkzy_qMZhI_ll3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0065","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":"Can you count how many characters are in this text for me: 'The quick brown fox jumps over the lazy dog. This sentence needs to be measured precisely.'","exampleUseCases":[{"title":"Validate text before API submission","prompt":"Before I send this article to the summarization API, can you check how many characters it has so I know if it fits within the 50,000 character limit?"},{"title":"Measure social media post length","prompt":"I've written a long LinkedIn post — can you count exactly how many characters it is so I can decide if I need to trim it?"},{"title":"Track character usage in generated content","prompt":"I just generated a product description for our catalog — can you tell me the character count so I can log it in our content database?"}],"resultDescription":"Returns a JSON object containing the character count (and potentially related metrics) for the submitted text string, up to 50,000 characters.","failureModes":["Text exceeding 50,000 characters may be rejected or truncated","Missing required 'text' field returns a validation error","Payment failure via x402 prevents the call from completing","Empty string input may return zero or an error depending on server handling"],"whenToPreferThis":"Choose this endpoint when you need a cheap, programmatic, pay-per-call character count for text strings — especially in agentic pipelines where you want to validate or log text length before passing content to downstream APIs with character limits. At $0.0065 USDC per call via x402 on Base, it is well-suited for high-frequency automated workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:16.551Z","isFirstParty":false,"canonicalSlug":"one-engine-text-character-counter-f03a837f"}