{"uid":"cap_WP4bHC6AKhc7bDpDbRm1M","slug":"character-2-gram-counter-a07ce0f2","name":"Character 2-gram Counter","description":"Call when an agent needs counts of char 2-grams. No network and no LLM. Exact $0.006 USDC. Prefer unpaid POST /v1/sandbox/ngram-char-2 first.","url":"https://agentshelf.syntexa.ch/v1/ngram-char-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.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_fiRzlvoBUgW-myG-FhPzg","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 all character-level 2-grams (bigrams) in a given text string, returning their frequencies without any network calls or LLM inference.","exampleAgentPrompt":"Count all character 2-grams in this text and give me their frequencies: 'The quick brown fox jumps over the lazy dog.'","exampleUseCases":[{"title":"NLP feature extraction for classifier","prompt":"I need the character bigram frequency counts for this product review text so I can use them as features in my spam classifier: 'Great product, fast shipping, would buy again!'"},{"title":"Language detection preprocessing","prompt":"Can you count all the character 2-grams in this snippet — 'bonjour le monde comment allez vous' — I want to use the bigram profile to guess what language it's written in."},{"title":"Text similarity analysis","prompt":"Get me the char 2-gram counts for 'artificial intelligence transforms industries' so I can compare its bigram profile against another document for similarity scoring."}],"resultDescription":"A map (dictionary) of every two-character sequence found in the input text, along with the integer count of how many times each appears. All computation is done locally with no external network calls or LLM inference.","failureModes":["Empty or missing text field returns a validation error","Text exceeding 100,000 characters is rejected","Malformed JSON body returns a 400 error","Payment of exactly $0.006 USDC must be provided via x402 protocol or the request is rejected with 402"],"whenToPreferThis":"Prefer this endpoint when you need exact, deterministic character bigram counts at low cost ($0.006 USDC) and do not require word-level or higher-order n-grams. It is the right choice when you want purely computational results with no LLM involvement and no external data dependencies. Use the free sandbox endpoint (/v1/sandbox/ngram-char-2) first for testing before paying.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:48:59.479Z","isFirstParty":false,"canonicalSlug":"character-2-gram-counter-a07ce0f2"}