{"uid":"cap_mbfqziYXA1TGXzeZkcQ7-","slug":"delx-char-freq-5a9fc39e","name":"Delx Char Freq","description":"Compute character frequency top counts. Call when you inspect distribution before encoding or compression steps. Returns unique count and top char histogram for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.","url":"https://api.delx.ai/api/v1/x402/char-freq","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Input field: text."}}},"responseSchema":{"type":"json","example":{"top":[{"char":"b","count":3},{"char":"a","count":2},{"char":"c","count":1}],"count":6,"schema":"delx/util-char-freq/v1","unique":3}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_D6kaAjjF672lu2FPkpXtS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes character frequency distribution and top character histogram for a given text string","exampleAgentPrompt":"What are the most frequent characters in this string, and how many unique ones are there? Text: 'the quick brown fox jumps over the lazy dog'","exampleUseCases":[{"title":"Pre-compression entropy inspection","prompt":"Before I compress this log data, can you show me the character frequency distribution so I can decide on the best encoding? Here's the text: 'ERROR 404: page not found. ERROR 500: internal server error. WARNING: disk usage at 95%.'"},{"title":"Tokenizer character coverage check","prompt":"I need to know which characters dominate this dataset sample and how many unique characters appear — can you run a character frequency analysis on: 'αβγδεζηθ hello world 12345 !@#$%'"},{"title":"Content fingerprinting before encoding","prompt":"Can you compute the top character counts for this text so I can profile it before choosing a character encoding scheme? Text: 'Héllo Wörld! Thís is ä tëst strïng with diacritics.'"}],"resultDescription":"Returns the number of unique characters in the input text along with a histogram of the top characters by frequency, expressed as a local JSON object. No external network calls are made; results are computed in-process and returned immediately.","failureModes":["Empty or missing text field — likely returns an error or empty histogram","Extremely long strings may hit payload size limits","Non-UTF-8 or binary input may produce unexpected character counts","Network or payment failure via x402 protocol results in no response"],"whenToPreferThis":"Use this endpoint when you need a lightweight, fast, local character-level frequency analysis prior to compression, encoding selection, or text profiling steps. It is ideal for agents that need to inspect text composition without any external data retention or third-party processing. Prefer it over heavier NLP endpoints when only character-level statistics (not word or semantic-level) are needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T06:55:28.863Z","isFirstParty":false}