{"uid":"cap_u6RXa9JZXH9bXLqBqeAZv","slug":"byte-4-gram-frequency-counter-49824bc4","name":"Byte 4-Gram Frequency Counter","description":"Call when an agent needs counts of byte 4-grams. No network and no LLM. Exact $0.006 USDC. Prefer unpaid POST /v1/sandbox/ngram-byte-4 first.","url":"https://agentshelf.syntexa.ch/v1/ngram-byte-4?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.006","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.006/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_nph495yaF9hN5Ful_bQMW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.006","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 all byte-level 4-grams (4-byte sequences) in a given text string, without any network calls or LLM involvement.","exampleAgentPrompt":"Can you count all the byte-level 4-grams and their frequencies in this text: 'The quick brown fox jumps over the lazy dog'?","exampleUseCases":[{"title":"NLP feature extraction pipeline","prompt":"I need the byte 4-gram frequency counts for this document chunk so I can use them as features in my text classification model: 'Natural language processing enables computers to understand human language in many useful ways.'"},{"title":"Text fingerprinting and similarity detection","prompt":"Give me the byte 4-gram counts for this string so I can compare it against another text for similarity: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor.'"},{"title":"Byte pattern analysis for encoding detection","prompt":"Can you compute the byte-level 4-gram distribution of this raw text so I can detect its encoding or language: 'This is a sample sentence to analyze for recurring byte patterns.'"}],"resultDescription":"A map or frequency table of all byte-level 4-gram sequences found in the input text, with their occurrence counts. The response is computed locally with no network or LLM calls, making it fast and deterministic.","failureModes":["Input text is empty or below minimum length (minLength: 1) — returns validation error","Input text exceeds 100,000 character limit — returns error indicating max length exceeded","Malformed JSON request body — returns HTTP 400 bad request","Payment not included or insufficient for the $0.006 USDC x402 fee — returns HTTP 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need deterministic, offline byte-level 4-gram frequency counts with no LLM or network dependency. It is ideal for NLP feature extraction, text fingerprinting, similarity analysis, or any pipeline requiring byte ngram statistics computed cheaply and reproducibly. The sandbox unpaid variant (/v1/sandbox/ngram-byte-4) should be preferred for testing before incurring the $0.006 USDC cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:50:09.240Z","isFirstParty":false,"canonicalSlug":"byte-4-gram-frequency-counter-49824bc4"}