# x402 Arabic API – Arabic Summarization

> x402 Arabic API – Arabic Summarization is a paid API for AI agents from arabic-x402-api-base.motaz-crypto.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-02).

Summarizes Arabic or English text into Arabic, with configurable length (short/medium/long), preserving 0x addresses, numbers, URLs, and code verbatim, paid per request via x402 (USDC).

## Facts

- Endpoint: POST https://arabic-x402-api-base.motaz-crypto.workers.dev/summarize-ar?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-arabic-api-arabic-summarization-4c565474
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wYSBX1XIjbGA1lSbAT7tx

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 x402-arabic-api-arabic-summarization-4c565474 -d '<json body>'
```

Example prompt: Can you summarize this Arabic news article about the Saudi Vision 2030 into 3-5 sentences in Arabic, keeping any wallet addresses or numbers exactly as they appear?

## When to prefer this

Choose this endpoint when you need Arabic-language summarization — especially for Gulf/Saudi Arabic content or mixed Arabic-English documents containing Web3 entities (addresses, token amounts, URLs) that must be preserved exactly. It is ideal for agents operating in Arabic-speaking markets that need concise, length-controlled summaries without manual translation steps. Prefer it over generic English summarizers when the output must be natively Arabic.

## Known failure modes

- 400 Bad Request if text is empty or exceeds 4000 characters
- 409 Conflict if the same x402 payment header is reused for a different request within the 1-hour window
- 402 Payment Required if no valid x402 payment header is provided
- Timeout or 5xx if the underlying Cloudflare Workers AI model is unavailable
- Summary quality degradation for highly domain-specific or rare dialect content

## How this service works

Arabic-native, Gulf-dialect aware Arabic API for agents: Arabic<->English translation (optional Web3 glossary), Arabic summarization, Saudi/Gulf dialect<->MSA conversion and i18n JSON localization. Keeps 0x addresses, numbers, URLs and code verbatim. Paid per request with x402 (USDC). Lost response: resend the IDENTICAL payment header to the same endpoint within 1 hour to get the same stored response (200, no second charge); any other payment reuse returns 409.

## Output

A JSON object containing the Arabic summary text at the requested length, the model name used (e.g. @cf/qwen/qwen3-30b-a3b-fp8), the requested length label, and an integrity checks object confirming whether any 0x addresses, numbers, or URLs were detected and preserved verbatim, plus a retried flag indicating if this was a replayed payment response.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 4000,
   "minLength": 1,
   "description": "Arabic or English text to summarize."
  },
  "length": {
   "enum": [
    "short",
    "medium",
    "long"
   ],
   "type": "string",
   "default": "medium",
   "description": "short≈1-2 sentences, medium≈3-5, long≈1-2 paragraphs."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "model": "@cf/qwen/qwen3-30b-a3b-fp8",
  "checks": {
   "retried": false,
   "verbatim": {
    "ok": true,
    "urls": [],
    "numbers": [],
    "addresses": []
   }
  },
  "length": "short",
  "summary": "Base هي شبكة طبقة ثانية لإيثريوم طوّرتها Coinbase."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-arabic-api-arabic-summarization-4c565474/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from arabic-x402-api-base.motaz-crypto.workers.dev](https://www.zero.xyz/host/arabic-x402-api-base.motaz-crypto.workers.dev/llms.txt)
