{"apiVersion":"1.0.0","schemaVersion":1,"generatedAt":"2026-07-10T16:36:52.948Z","resource":{"id":"a0a3fcfad4afeb7564e33723","key":"POST https://staging.402utils.com/v1/token-count","method":"POST","resourceUrl":"https://staging.402utils.com/v1/token-count","alternateResourceUrls":["https://staging.402utils.com/v1/token-count"],"canonicalUrl":"https://staging.402utils.com/v1/token-count","origin":"https://staging.402utils.com","hostname":"staging.402utils.com","groupId":"staging-402utils-com-86b13275","providerName":"staging.402utils.com","title":"POST /v1/token-count","description":"Count BPE tokens in a text with tiktoken (o200k_base = GPT-4o default, or cl100k_base). An agent can check content fits an LLM context window before paying for an expensive call. Returns token count, char count and encoding. Honest scope: an OpenAI-style estimate — no open-source Claude tokenizer exists (exact Claude counts need the Anthropic API), Gemini differs too. Provided text only; nothing is fetched. Max 1 MB.","tags":[],"type":"http","x402Version":2,"routeTemplate":null,"input":{"type":"http","method":"POST","bodyType":"json","bodyFieldNames":["encoding","text"],"pathParamNames":[],"queryParamNames":[]},"iconUrl":null,"payment":{"networks":["eip155:84532"],"schemes":["exact"],"assets":["0x036CbD53842c5426634e7929541eC2318f3dCF7e"],"options":[{"network":"eip155:84532","scheme":"exact","asset":"0x036CbD53842c5426634e7929541eC2318f3dCF7e","amountAtomic":"1000","payTo":"0xc55A2D530b53CBaD1001e4AfD4720B7E71f9C291","maxTimeoutSeconds":60,"tokenName":"USDC","tokenVersion":"2"}],"acceptedPaymentCount":1,"priceUsd":null},"quality":{"l30DaysTotalCalls":5,"l30DaysUniquePayers":1,"lastCalledAt":"2026-07-06T08:11:32.371Z"},"registry":null,"sources":[{"id":"cdp-bazaar","sourceUrl":"https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources","observedAt":"2026-07-10T13:31:47.300Z","lastUpdated":"2026-07-06T08:11:15.244Z","recordKey":"POST https://staging.402utils.com/v1/token-count"}],"verification":{"level":"origin-reachable","checkedAt":"2026-07-10T15:06:25.723Z","structural":{"ok":true,"normalized":true,"publicHttpUrl":true},"sourceConfirmed":true,"crossSource":false,"registryPaymentValid":null,"originCheck":{"scope":"origin","reachable":true,"statusCode":200,"method":"HEAD","checkedAt":"2026-07-10T15:04:24.876Z","latencyMs":2091,"error":null},"quoteCheck":{"scope":"exact-route","outcome":"not-safely-testable","attempted":false,"requestedMethod":null,"statusCode":null,"finalUrl":"https://staging.402utils.com/v1/token-count","redirectCount":0,"checkedAt":"2026-07-10T15:06:25.723Z","latencyMs":null,"reason":"potentially-mutating-method:POST","requirementCount":0},"quote":null,"paidCall":{"verified":false,"checkedAt":null,"network":null,"receiptReference":null,"outputReviewed":false}},"curation":{"status":"discovered","basis":"discovery-only","matchScope":null,"listingSlug":null,"providerListingSlug":null,"listingName":null,"kind":null,"categories":[],"editorialDescription":null,"docsUrl":null,"sourceUrl":null}}}