{"uid":"cap_-H5KlwRX3UYSbtcxlN-aM","slug":"delx-token-estimate-b21af1a7","name":"Delx Token Estimate","description":"Estimate GPT- and Claude-style token counts for a text payload for $0.001 USDC; deterministic and keyless. Call when you need this bounded result without an API key or subscription. Returns machine-readable JSON via x402 on Base or Solana. Limitation: results cover only the supplied input or one bounded public endpoint at request time; callers must verify before acting.","url":"https://api.delx.ai/api/v1/x402/token-estimate","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","bodyType","body"],"properties":{"body":{"type":"object","additionalProperties":true},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","additionalProperties":true}}}}},"responseSchema":{"type":"json","example":{}},"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_6CsRlO42fBFfZplrjdAgj","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":"Estimates GPT-style and Claude-style token counts for a given text payload, returning deterministic results without requiring an API key.","exampleAgentPrompt":"How many tokens would this text use in GPT-4 and Claude? 'The quick brown fox jumps over the lazy dog. Large language models have transformed how we interact with computers.'","exampleUseCases":[{"title":"Prompt budget check before LLM call","prompt":"Before I send this 2,000-word document to GPT-4, can you estimate how many tokens it will use so I know if it fits in the context window?"},{"title":"Compare token costs across model families","prompt":"I have this system prompt and user message — can you tell me the token count for both GPT-style and Claude-style tokenization so I can compare which model will be cheaper to run?"},{"title":"Validate fine-tuning dataset entry size","prompt":"Check how many tokens this training example has: 'User: What is the capital of France? Assistant: The capital of France is Paris.' — I need to make sure it's under 512 tokens for my fine-tuning job."}],"resultDescription":"Returns GPT-style and Claude-style token count estimates for the submitted text, computed deterministically without contacting any LLM API. Results typically include per-model token counts and may include breakdown metadata.","failureModes":["Empty or missing text payload returns a validation error","Extremely large payloads may be rejected or rate-limited","Malformed request body returns a 400 Bad Request","Payment not included or insufficient results in a 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when you need a fast, keyless, deterministic token count estimate before sending text to GPT or Claude — particularly useful in cost-estimation pipelines, prompt budget guards, or fine-tuning dataset validators where you don't want to call the actual LLM API just to measure token length.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T13:06:54.725Z","isFirstParty":false}