{"uid":"cap_-a_1mWMoq8GQ1AENxaMOB","slug":"grokzilla-token-count-63ac5dd2","name":"Grokzilla Token Count","description":"Agent-ready microservices with x402 + Stripe rails, volume primitives, tutorials, and applet UI.","url":"https://grokzilla.shop/api/skills/token-count","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"body":{"type":"object"},"path":{"type":"string"},"type":{"type":"string","const":"http"},"method":{"type":"string"},"bodyType":{"type":"string"}}},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"path":"/api/skills/token-count"}},"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_CHZQoO2wlH5Jl3YT4hNXZ","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 the number of tokens in a given text payload, billed per call via x402/USDC micropayment rails.","exampleAgentPrompt":"Count the number of tokens in this text: 'The quick brown fox jumps over the lazy dog. Large language models tokenize text differently than word counts suggest.'","exampleUseCases":[{"title":"Prompt length budget check","prompt":"Before I send this system prompt to GPT-4, count how many tokens it uses so I know if it fits within the 8k context limit."},{"title":"Cost estimation before LLM call","prompt":"Count the tokens in this 2,000-word article draft so I can estimate how much it'll cost to summarize it with Claude."},{"title":"Batch document token audit","prompt":"I need to know how many tokens are in this legal contract text before I chunk it for embedding — can you count them?"}],"resultDescription":"Returns a JSON object with an 'ok' boolean indicating success and the request path, along with the computed token count for the submitted text input.","failureModes":["Missing required 'input' field returns a validation error","Invalid or missing 'type' or 'method' properties cause schema rejection","Payment failure via x402 (402 response) blocks processing","Malformed JSON body results in parse error","Empty text body may return zero count or an error depending on implementation"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-use token counting service without subscribing to a full LLM provider SDK, especially useful for agents operating autonomously with USDC micropayment capabilities via x402 rails.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:47:41.743Z","isFirstParty":false}