# Bounty Engineer Text Chunker

> Bounty Engineer Text Chunker is a paid API for AI agents from bounty-engineer-x402-prod.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Splits a text string into overlapping fixed-size chunks with SHA-256 hashes and UTF-16 byte offsets for downstream processing by AI agents.

## Facts

- Endpoint: POST https://bounty-engineer-x402-prod.onrender.com/v1/text-chunker?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bounty-engineer-text-chunker-4f3c4d98
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CLX5xjRhw0jE64-se1ZNP

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 bounty-engineer-text-chunker-4f3c4d98 -d '<json body>'
```

Example prompt: Split this article into chunks of 256 characters each with a 32-character overlap so I can embed them for search: 'The quick brown fox jumps over the lazy dog. This is a test document with multiple sentences to demonstrate chunking.'

## When to prefer this

Choose this endpoint when you need deterministic, reproducible text chunking with per-chunk SHA-256 fingerprints and UTF-16 byte offsets — especially useful for RAG pipelines, vector database ingestion, or deduplication workflows. Prefer it over in-process chunking libraries when you need a consistent, auditable, payable micro-service call that integrates with the x402 agent commerce ecosystem.

## Known failure modes

- Missing or empty 'text' field returns an error
- chunk_chars value of zero or negative may cause undefined behavior
- Very large text inputs may time out or be truncated (truncated: true)
- Non-integer values for chunk_chars or overlap_chars may be rejected
- overlap_chars equal to or greater than chunk_chars could cause infinite loop or error

## How this service works

Machine-buyable infrastructure for autonomous agents: API cost routing, margin optimization, funding-rate data, webpage extraction, result verification, spend controls, retry planning, state, tender search and GitHub bounty intelligence.

## Output

Returns a JSON object containing an array of chunk objects, each with the chunk text, its sequential index, a SHA-256 hash, and UTF-16 start/end character offsets. Also returns metadata: total chunk count, input character count, chunk size used, overlap size used, and a truncated flag indicating whether the input was cut short.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string"
  },
  "chunk_chars": {
   "type": "integer"
  },
  "overlap_chars": {
   "type": "integer"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "mode": "text_chunker",
  "chunks": [
   {
    "text": "One two three four five six seven eight nine ten. One two three four five six seven eight nine ten. One two three four five six",
    "index": 0,
    "sha256": "32885d3ed2faf9ef13427870eaa245ec1db41662193b7e82c54184d5f6562c59",
    "end_utf16": 127,
    "start_utf16": 0
   },
   {
    "text": "ee four five six seven eight nine ten.",
    "index": 1,
    "sha256": "cf7ed180f6a6e9beb991ae31adf3c8862553c393e7ae13745d7420cdabd337eb",
    "end_utf16": 149,
    "start_utf16": 111
   }
  ],
  "truncated": false,
  "chunk_chars": 128,
  "chunk_count": 2,
  "input_chars": 149,
  "overlap_chars": 16
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bounty-engineer-text-chunker-4f3c4d98/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bounty-engineer-x402-prod.onrender.com](https://www.zero.xyz/host/bounty-engineer-x402-prod.onrender.com/llms.txt)
