# Arabic Pipeline API – Text Normalize

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

Normalizes Arabic text by standardizing diacritics, letter forms, whitespace, and encoding inconsistencies

## Facts

- Endpoint: POST https://arabic-pipeline.arabic-pipeline.workers.dev/text/normalize?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/arabic-pipeline-api-text-normalize-06d5eedd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5R497VoukdO9JjZnbyK2E

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-api-text-normalize-06d5eedd -d '<json body>'
```

Example prompt: Can you normalize this Arabic text for me — clean up the letter forms, diacritics, and any encoding quirks: 'مرحبًا بِكُم في العالَمِ العَربِيّ'?

## When to prefer this

Choose this endpoint when you need lightweight, pay-per-use Arabic text normalization with no API key or subscription overhead. Ideal for sporadic or low-volume Arabic NLP preprocessing tasks where setting up a full NLP library or managed service is overkill. Best suited for agents that already support x402 micropayment flows on Base and need a stateless, pure-computation text cleaning step.

## Known failure modes

- Empty or missing 'text' field returns an error response
- Non-Arabic or mixed-script input may produce unexpected normalization
- Payment challenge (HTTP 402) returned on first request — client must pay $0.005 USDC on Base and retry
- Network timeout if the Cloudflare Worker is cold-starting
- Malformed JSON body returns a 400-level error

## 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 the normalized Arabic text with standardized letter forms, consistent hamza representation, stripped or unified diacritics, and cleaned whitespace and encoding artifacts, ready for downstream NLP processing or storage.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mode": {
   "enum": [
    "light",
    "search",
    "index"
   ],
   "type": "string"
  },
  "text": {
   "type": "string",
   "description": "The Arabic text to normalize."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mode": "search",
  "text": "مرحبا بالعالم",
  "applied": [],
  "changed": false,
  "cost_usd": 0.005,
  "endpoint": "POST /text/normalize",
  "after_chars": 12,
  "before_chars": 12
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/arabic-pipeline-api-text-normalize-06d5eedd/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)
