{"id":"17f64b20-7272-45a2-9330-0a5b76dcc7ae","shortId":"kYPZZh","kind":"x402","title":"Exact BPE token count for GPT-4o, GPT-4 and GPT-3.5 plus Claude and Llama estimates, for budgeting LLM context and cost before an API call","tagline":"Exact BPE token count for GPT-4o, GPT-4 and GPT-3.5 plus Claude and Llama estimates, for budgeting LLM context and cost ","description":"Exact BPE token count for GPT-4o, GPT-4 and GPT-3.5 plus Claude and Llama estimates, for budgeting LLM context and cost before an API call. token count, tokenizer, count tokens, context length, llm cost estimate, tiktoken","tags":[],"capabilities":["x402-base","http-post"],"categories":[],"synonyms":[],"warnings":[],"endpointUrl":"https://api.x402node.dev/ai/token-count","protocol":"x402","transport":"http","auth":{"type":"x402","details":[{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"name":"USD Coin","version":"2"},"payTo":"0x4466d4A84b7c49a6A094ec6eef4a0712D6dd125e","scheme":"exact","network":"base","mimeType":"application/json","resource":"https://api.x402node.dev/ai/token-count","description":"Exact BPE token count for GPT-4o, GPT-4 and GPT-3.5 plus Claude and Llama estimates, for budgeting LLM context and cost before an API call. token count, tokenizer, count tokens, context length, llm cost estimate, tiktoken","outputSchema":{"input":{"type":"http","method":"POST","queryParams":{"text":"Text to tokenize (required, max 200KB)","model":"Model: gpt-4o (default), gpt-4, gpt-3.5"},"discoverable":true}},"maxAmountRequired":"5000","maxTimeoutSeconds":60}]},"qualityScore":"0.000","qualityRationale":null,"verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":null,"enrichmentVersion":1,"enrichedAt":null,"embedding":null,"createdAt":"2026-06-12T06:35:35.305Z","updatedAt":"2026-06-23T13:32:23.608Z","lastSeenAt":"2026-06-23T13:32:23.608Z","tsv":"'-3.5':13,41,65 '-4':10,38,62 '4o':8,36,60 'api':27,79 'bpe':2,30,54 'budget':20,48,72 'call':28,80 'claud':15,43,67 'context':22,50,74,86 'cost':24,52,76,89 'count':4,32,56,82,84 'estim':18,46,70,90 'exact':1,29,53 'gpt':7,9,12,35,37,40,59,61,64 'gpt-4o':6,34,58 'http-post' 'length':87 'llama':17,45,69 'llm':21,49,73,88 'plus':14,42,66 'tiktoken':91 'token':3,31,55,81,83,85 'x402-base'","prices":[{"id":"9c2f40bc-bd18-47ee-9155-ec341ba63145","listingId":"17f64b20-7272-45a2-9330-0a5b76dcc7ae","amountUsd":null,"unit":"per_call","nativeCurrency":"USD COIN","nativeAmount":"5000","chain":"base","payTo":"0x4466d4A84b7c49a6A094ec6eef4a0712D6dd125e","paymentMethod":"x402-usd coin","isPrimary":true,"details":{"scheme":"exact","mime_type":"application/json","accepts_all":[{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"name":"USD Coin","version":"2"},"payTo":"0x4466d4A84b7c49a6A094ec6eef4a0712D6dd125e","scheme":"exact","network":"base","mimeType":"application/json","resource":"https://api.x402node.dev/ai/token-count","description":"Exact BPE token count for GPT-4o, GPT-4 and GPT-3.5 plus Claude and Llama estimates, for budgeting LLM context and cost before an API call. token count, tokenizer, count tokens, context length, llm cost estimate, tiktoken","outputSchema":{"input":{"type":"http","method":"POST","queryParams":{"text":"Text to tokenize (required, max 200KB)","model":"Model: gpt-4o (default), gpt-4, gpt-3.5"},"discoverable":true}},"maxAmountRequired":"5000","maxTimeoutSeconds":60}],"asset_contract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","max_timeout_seconds":60},"createdAt":"2026-06-12T06:35:35.305Z"}],"sources":[{"listingId":"17f64b20-7272-45a2-9330-0a5b76dcc7ae","source":"x402_bazaar","sourceId":"https://api.x402node.dev/ai/token-count","sourceUrl":"https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources","isPrimary":true,"firstSeenAt":"2026-06-12T06:35:35.305Z","lastSeenAt":"2026-06-23T13:32:23.608Z"}],"details":{"listingId":"17f64b20-7272-45a2-9330-0a5b76dcc7ae","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":{"input":{"type":"http","method":"POST","queryParams":{"text":"Text to tokenize (required, max 200KB)","model":"Model: gpt-4o (default), gpt-4, gpt-3.5"},"discoverable":true}},"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"x402_version":1,"resource_type":"http","bazaar_last_updated":"2026-06-23T03:58:38.014Z"},"updatedAt":"2026-06-23T13:32:23.608Z"}}