# Arabic Pipeline – Text Chunker

> Arabic Pipeline – Text Chunker is a paid API for AI agents from arabic-pipeline.arabic-pipeline.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Splits Arabic text into overlapping or non-overlapping chunks of a specified maximum character length

## Facts

- Endpoint: POST https://arabic-pipeline.arabic-pipeline.workers.dev/text/chunk?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/arabic-pipeline-text-chunker-b037ccfc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mZMgZcKMiKKf8oqJtuYd4

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 arabic-pipeline-text-chunker-b037ccfc -d '<json body>'
```

Example prompt: Split this Arabic text into chunks of at most 500 characters each with a 50-character overlap between consecutive chunks: 'الذكاء الاصطناعي هو محاكاة للعمليات الذكاء البشري...'

## When to prefer this

Choose this endpoint when you need a pay-per-call, no-registration Arabic text chunker with configurable chunk size and overlap, especially when building RAG pipelines, embedding workflows, or semantic search indexes over Arabic content. Prefer it over general-purpose chunkers when the text is primarily Arabic and you want fine-grained control over chunk boundaries via character counts.

## Known failure modes

- Text exceeds processing limits — max_chars must be between 1 and 8000
- Invalid overlap value — overlap must be a non-negative integer
- Missing required 'text' field returns validation error
- Non-Arabic or mixed-script text may produce unexpected chunk boundaries
- 402 Payment Required on first call — client must complete x402 USDC payment challenge before retrying
- Network timeout on Cloudflare Worker if text payload is extremely large

## How this service works

Nine micro-capabilities for Arabic-language work, sold per call over x402 in USDC on Base. No API key, no account, no subscription for the buyer: the first request returns a 402 payment challenge, the client pays it and retries. Text utilities are pure computation and cost nothing to serve.

## Output

Returns a JSON object containing an array of chunk objects (each with index, start offset, end offset, and text), a total chunk count, total character count, the endpoint name, and the cost in USD ($0.002 per call).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "The text to split."
  },
  "overlap": {
   "type": "integer",
   "minimum": 0
  },
  "max_chars": {
   "type": "integer",
   "maximum": 8000,
   "minimum": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "chunks": [
   {
    "end": 12,
    "text": "مرحبا بالعالم",
    "index": 0,
    "start": 0
   }
  ],
  "cost_usd": 0.002,
  "endpoint": "POST /text/chunk",
  "total_chars": 12
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/arabic-pipeline-text-chunker-b037ccfc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from arabic-pipeline.arabic-pipeline.workers.dev](https://www.zero.xyz/host/arabic-pipeline.arabic-pipeline.workers.dev/llms.txt)
