{"partialResults":false,"resources":[{"accepts":[{"amount":"1000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"name":"USD Coin","version":"2"},"maxTimeoutSeconds":300,"network":"eip155:8453","payTo":"0xF1643BD00D3c071d9a0c12A4E7d3a17e6E19f8a5","scheme":"exact"}],"description":"Count the tokens of a text for OpenAI models (o200k_base for GPT-4o and later, cl100k_base for GPT-4), with characters, words and lines, to size prompts and estimate cost.","extensions":{"bazaar":{"info":{"input":{"body":{"text":"Agents pay for APIs with x402."},"bodyType":"json","method":"POST","type":"http"},"output":{"example":{"characters":30,"tokens":{"cl100k_base":9,"o200k_base":9},"words":6},"type":"json"}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"encodings":{"description":"which encodings (default both)","items":{"enum":["o200k_base","cl100k_base"],"type":"string"},"type":"array"},"text":{"description":"the text (up to 1 MB)","type":"string"}},"required":["text"]},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"characters":{},"tokens":{},"words":{}},"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"}}},"lastUpdated":"2026-11-01T14:04:41.748Z","quality":{"l30DaysTotalCalls":4,"l30DaysUniquePayers":1,"lastCalledAt":"2026-11-01T14:04:41.634Z"},"resource":"https://utils.kagurazaka.dev/v1/tokens","serviceName":"x402 Utils","tags":["tokens","llm","tokenizer","openai"],"type":"http","x402Version":2}],"searchMethod":"text","x402Version":2,"meta":{"searchToken":"t5tkth6lfo3twaa"}}
