{"uid":"cap_fUMA2vSl2NYFGT_dDTnnh","slug":"byte-2-gram-frequency-counter-5032e141","name":"Byte 2-Gram Frequency Counter","description":"Call when an agent needs counts of byte 2-grams. No network and no LLM. Exact $0.004 USDC. Prefer unpaid POST /v1/sandbox/ngram-byte-2 first.","url":"https://agentshelf.syntexa.ch/v1/ngram-byte-2?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.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lSVMN9ZwX7lPw3P9vqrQz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Counts all byte bigram (2-gram) occurrences in the provided text, returning frequency statistics for every consecutive byte pair.","exampleAgentPrompt":"Can you count all the byte 2-grams (consecutive byte pairs) in this text: 'Hello world! This is a test string.'?","exampleUseCases":[{"title":"Language model training data analysis","prompt":"I need to analyze the byte bigram distribution in this corpus text to understand low-level byte patterns: 'The quick brown fox jumps over the lazy dog. Pack my box with five dozen liquor jugs.' Can you count all byte 2-grams for me?"},{"title":"Detecting repeated byte patterns in encoded data","prompt":"Here's a base64-encoded blob I decoded — can you count all the byte 2-grams in it so I can see which byte pairs repeat the most? The text is: 'SGVsbG8gV29ybGQhIFRoaXMgaXMgYSB0ZXN0Lg=='"},{"title":"Fingerprinting text for similarity detection","prompt":"I want to create a byte bigram fingerprint of this paragraph to compare it with other documents later. Can you count all the byte 2-grams in: 'Artificial intelligence is transforming how we interact with technology every single day.'?"}],"resultDescription":"A map or frequency table of all consecutive byte pairs (2-grams) found in the input text, with each unique byte pair and its occurrence count. The result is computed locally with no network calls or LLM involvement, making it deterministic and exact.","failureModes":["Empty or missing 'text' field returns a validation error","Text exceeding 100,000 characters is rejected due to maxLength constraint","Malformed JSON request body returns a 400 error","Payment of exactly $0.004 USDC required; insufficient payment returns 402","Non-UTF-8 or binary content may cause unexpected byte interpretation results"],"whenToPreferThis":"Use this endpoint when you need exact, deterministic byte-level 2-gram frequency counts with no external dependencies. It operates with no network calls and no LLM inference, making it fast, reproducible, and cheap ($0.004 USDC). Prefer the free sandbox endpoint (/v1/sandbox/ngram-byte-2) for testing. Choose this over word-level or character-level n-gram services when you specifically need byte-granularity bigrams.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:50:23.030Z","isFirstParty":false,"canonicalSlug":"byte-2-gram-frequency-counter-5032e141"}