{"uid":"cap_PtaFBP3Rt4m7_ZP0S97x5","slug":"delx-commerce-handoff-size-estimator-5f119df8","name":"Delx Commerce — Handoff Size Estimator","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/handoff-size-estimate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"UTF-8 text content to hash or size"}}},"responseSchema":{"type":"json","example":{"bytes":600,"schema":"delx/util-handoff-size-estimate/v1","token_estimate":150}},"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_F5CHkZbyg5NkFk5Ovtm63","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 the byte size and token count of a UTF-8 text payload, useful for planning agent handoffs and data transfers.","exampleAgentPrompt":"How many bytes and tokens is this text: 'The quick brown fox jumped over the lazy dog and then sat down to rest by the riverbank'?","exampleUseCases":[{"title":"Pre-handoff payload size check","prompt":"Before passing this summary to the next agent, tell me how many bytes and tokens it is: 'This quarterly report covers revenue growth of 12% across APAC, EMEA, and North America, with key insights on churn reduction and new product adoption.'"},{"title":"LLM token budget planning","prompt":"I need to know if this paragraph fits within a 200-token budget — can you estimate the token count for: 'Artificial intelligence is rapidly transforming industries worldwide, from healthcare diagnostics to financial modeling and autonomous transportation systems.'"},{"title":"Agent message size validation","prompt":"Check the byte size and token estimate for this agent message I'm about to send: 'Order confirmed. Customer ID 84921, item SKU-3341, quantity 2, shipping to 123 Main St, Springfield, estimated delivery 5 business days.'"}],"resultDescription":"Returns a JSON object with three fields: 'bytes' (integer byte length of the input text), 'token_estimate' (estimated number of LLM tokens), and 'schema' (a version string identifying the response format, e.g. 'delx/util-handoff-size-estimate/v1').","failureModes":["Missing or empty 'text' field returns an error or zero values","Non-UTF-8 encoded input may produce inaccurate byte counts","Very large payloads may time out or be rejected","Payment failure via x402 prevents the call from completing","Token estimate is approximate and may differ from specific LLM tokenizer implementations"],"whenToPreferThis":"Use this endpoint when an AI agent needs to quickly measure the byte size or approximate token count of a text payload before routing it to another agent, checking it against a context window, or estimating API costs. It is a lightweight utility call (no signup, $0.001 USDC per call) best suited for orchestration pipelines that need fast, cheap size validation without spinning up a full tokenizer library.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:43.705Z","isFirstParty":false,"canonicalSlug":"delx-commerce-handoff-size-estimator-5f119df8"}