{"uid":"cap_mFC5tXeIYXbIp33u5bpDY","slug":"x402-forgemesh-io-token-text-analytics-f70994a2","name":"x402.forgemesh.io Token & Text Analytics","description":"Token and word counting API: characters, words, sentences, estimated LLM tokens, Flesch reading ease, and reading time for any text. Budgeting context windows and readability in one call.","url":"https://x402.forgemesh.io/count-tokens","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string"}}},"responseSchema":{"type":"json","example":{"words":13,"sentences":2,"flesch_reading_ease":97,"estimated_llm_tokens":16}},"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_gz0JDpmQkALBPZfMNeTF8","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":"Counts characters, words, sentences, estimated LLM tokens, Flesch reading ease score, and reading time for any input text in a single API call.","exampleAgentPrompt":"Can you count the tokens, words, sentences, and Flesch readability score for this text: 'Artificial intelligence is transforming how we work and communicate, enabling faster decisions and richer insights across every industry.'?","exampleUseCases":null,"resultDescription":"Returns character count, word count, sentence count, estimated LLM token count, Flesch reading ease score, and estimated reading time for the submitted text — all in one response.","failureModes":["Empty or missing 'text' field returns a validation error","Extremely large text inputs may exceed payload limits","Payment failure (insufficient USDC balance) blocks the request","Network timeout for very large text submissions"],"whenToPreferThis":"Use this endpoint when you need to budget LLM context windows, check whether a prompt or document fits within a token limit, assess readability of text, or get a comprehensive set of text metrics in a single low-cost call without needing a local tokenizer library.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:54:59.462Z","isFirstParty":false}