# Delx Commerce — Text Chunk Plan

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

Splits a UTF-8 text string into overlapping character-based chunks and returns the index plan (start, end, char count) for each chunk without performing embedding or storage.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/text-chunk-plan?utm_source=zero.xyz
- Price: $0.003/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-text-chunk-plan-f6fea30b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_e0i6G6iCurSTxqa74DV_d

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-text-chunk-plan-f6fea30b -d '<json body>'
```

Example prompt: Split this article into chunks of 512 characters with a 64-character overlap and show me the start, end, and size of each chunk: 'The quick brown fox jumps over the lazy dog. Natural language processing enables machines to understand human text...'

## When to prefer this

Use this endpoint when you need a deterministic, character-level chunk plan for a text string — especially as a preprocessing step before embedding or vector indexing — and want verifiable, pay-per-call pricing with no signup. Prefer it over rolling your own chunker when you need exact start/end offsets and overlap control in a single API call, or when operating in an agentic workflow that already uses x402 micropayments on Base or Solana.

## Known failure modes

- Invalid chunk_size (0 or >20000) returns a validation error
- overlap >= chunk_size causes a parameter conflict error
- Non-UTF-8 or malformed text body may return a 400 bad request
- Payment failure or insufficient USDC balance on Base/Solana blocks the call with a 402 response
- Empty text string may return a chunk_count of 0 with an empty chunks array

## 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 containing an array of chunk descriptors (each with index, start, end, and chars fields), along with metadata: total text_chars, chunk_count, the effective chunk_size and overlap used, and a truncated flag indicating whether the input was cut short. Schema version is identified as delx/util-text-chunk-plan/v1.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "UTF-8 text to encode, chunk, index, or analyze (caller-supplied only)."
  },
  "overlap": {
   "type": "number",
   "description": "Characters of overlap between consecutive chunks (0 .. chunk_size-1)."
  },
  "chunk_size": {
   "type": "number",
   "description": "Characters per chunk (1–20000); example uses small sizes for demos."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chunks": [
   {
    "end": 4,
    "chars": 4,
    "index": 0,
    "start": 0
   },
   {
    "end": 7,
    "chars": 4,
    "index": 1,
    "start": 3
   },
   {
    "end": 10,
    "chars": 4,
    "index": 2,
    "start": 6
   }
  ],
  "schema": "delx/util-text-chunk-plan/v1",
  "overlap": 1,
  "truncated": false,
  "chunk_size": 4,
  "text_chars": 10,
  "chunk_count": 3
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-text-chunk-plan-f6fea30b/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)
