{"uid":"cap_nFsw-IG1j1Hz87I5YiqLV","slug":"byte-1-gram-frequency-counter-423068d1","name":"Byte 1-gram Frequency Counter","description":"Call when an agent needs counts of byte 1-grams. No network and no LLM. Exact $0.003 USDC. Prefer unpaid POST /v1/sandbox/ngram-byte-1 first.","url":"https://agentshelf.syntexa.ch/v1/ngram-byte-1?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","examples":["ab ab"],"maxLength":100000,"minLength":1,"description":"Input for this SKU. The route description says whether it is plain text, a URL, base64 bytes, or an already-encoded token."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TKnoBk7T8X-Xnuv02VQQ7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Counts the frequency of each byte value (0–255) in the provided text, returning a complete byte unigram histogram","exampleAgentPrompt":"Count the byte-level 1-gram frequencies in this text for me: 'Hello, world! This is a test string.' I need a complete histogram of how many times each byte value appears.","exampleUseCases":[{"title":"Entropy estimation for compression","prompt":"I'm about to compress a log file chunk. Can you count the byte frequencies in this text so I can estimate Shannon entropy before deciding on a compression algorithm? Here's the chunk: 'ERROR 2024-01-15 connection timeout host=db01 retries=3 ...'"},{"title":"Byte distribution anomaly detection","prompt":"I want to check if this network payload looks suspicious — can you give me a byte 1-gram histogram for this string so I can compare it against expected byte distributions? The payload is: '\\x00\\x01\\x02\\xffGET /admin HTTP/1.1\\r\\n'"},{"title":"Linguistic byte profile analysis","prompt":"I'm building a language detector and need raw byte frequency counts for this sample sentence: 'Bonjour le monde, comment allez-vous aujourd'hui?' — please give me the full byte unigram histogram."}],"resultDescription":"A mapping of byte values (0–255) to their counts within the submitted text, representing a complete byte unigram frequency histogram. Each byte that appears at least once is listed with its occurrence count.","failureModes":["Empty or missing text field returns a validation error","Text exceeding 100,000 characters is rejected","Payment of exactly $0.003 USDC via x402 is required; missing or incorrect payment results in 402 Payment Required","Malformed JSON body returns a 400 error","Non-UTF8 byte sequences may be handled differently than expected depending on server encoding"],"whenToPreferThis":"Choose this endpoint when you need exact, deterministic byte-level 1-gram counts without any LLM or network dependency — ideal for cryptographic preprocessing, compression analysis, or information-theoretic tasks. Prefer the free sandbox endpoint at /v1/sandbox/ngram-byte-1 first; use this paid endpoint when the sandbox is unavailable or rate-limited. For word-level or character-level frequency analysis, a different endpoint is more appropriate.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:50:19.245Z","isFirstParty":false,"canonicalSlug":"byte-1-gram-frequency-counter-423068d1"}