# Delx Commerce — Handoff Size Estimator

> Delx Commerce — Handoff Size Estimator is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Estimates the byte size and token count of a UTF-8 text payload, useful for planning agent handoffs and data transfers.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/handoff-size-estimate?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-handoff-size-estimator-5f119df8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PtaFBP3Rt4m7_ZP0S97x5

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability delx-commerce-handoff-size-estimator-5f119df8 -d '<json body>'
```

Example prompt: 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'?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

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').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "UTF-8 text content to hash or size"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bytes": 600,
  "schema": "delx/util-handoff-size-estimate/v1",
  "token_estimate": 150
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-handoff-size-estimator-5f119df8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
