{"uid":"cap_l94NaC_B3t75wGjoH5Df0","slug":"delx-handoff-size-estimate-95e9266d","name":"Delx Handoff Size Estimate","description":"Estimate bytes/tokens for a handoff capsule string. Call when Protocol-adjacent sizing before free handoff storage. Returns bytes and token_estimate as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.","url":"https://api.delx.ai/api/v1/x402/handoff-size-estimate","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_8tWDn-vNkfkYEeB91T8I1","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 string to help agents plan payload sizing before handoff operations.","exampleAgentPrompt":"Before I send this content to the next agent, can you estimate how many bytes and tokens it is? The text is: 'Welcome to the quarterly review. This document summarizes key performance indicators for Q3 2024 across all business units.'","exampleUseCases":[{"title":"Pre-flight payload size check","prompt":"I need to check if this article excerpt will fit under my 512-token API limit before I POST it — can you estimate the byte size and token count for this text: 'The global semiconductor shortage has continued to affect manufacturing output across consumer electronics, automotive, and industrial sectors throughout the year.'"},{"title":"Agent handoff planning before batch","prompt":"Before I split this report into chunks and hand it off to downstream agents, can you tell me the byte and token size of this section: 'Revenue grew 18% year-over-year driven primarily by cloud services and subscription renewals in North America and EMEA regions.'"},{"title":"LLM context window planning","prompt":"I'm about to inject this system prompt into an LLM call and want to know how many tokens it'll consume — can you size this text for me: 'You are a helpful assistant specialized in financial analysis. Always cite your sources, avoid speculation, and format your responses with clear headers and bullet points.'"}],"resultDescription":"Returns a JSON object containing the exact byte count of the input text, an estimated token count, and a schema identifier string (e.g. 'delx/util-handoff-size-estimate/v1') confirming the response format.","failureModes":["Missing or empty 'text' field returns a validation error","Extremely large text payloads may be rejected or time out","Non-UTF-8 encoded content may produce inaccurate byte counts","Network errors or service unavailability return a 5xx response"],"whenToPreferThis":"Choose this endpoint when you need a quick, cheap computation of text payload size in bytes and estimated tokens before making downstream API calls, chunking decisions, or agent handoffs — especially when working within strict token budgets or payload size ceilings. It is purpose-built for agent orchestration workflows and costs only $0.001 USDC per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:50:46.945Z","isFirstParty":false}