# x402 Arabic API – Dialect-to-MSA Converter

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

Converts Arabic text between Saudi/Gulf dialect and Modern Standard Arabic (MSA), preserving numbers, URLs, addresses, and code verbatim, paid per request via x402 USDC.

## Facts

- Endpoint: POST https://arabic-x402-api-base.motaz-crypto.workers.dev/dialect-to-msa?utm_source=zero.xyz
- Price: $0.01/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-dialect-to-msa-converter-163aaf10
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MojVCukgSLtBupX1dujOi

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-dialect-to-msa-converter-163aaf10 -d '<json body>'
```

Example prompt: Convert this Saudi dialect text to Modern Standard Arabic, making sure any numbers and URLs stay exactly as-is: 'وين تبي تروح بكرة؟ أبي أشوف المحفظة الجديدة على https://example.com'

## When to prefer this

Choose this endpoint when you specifically need bidirectional conversion between Saudi/Gulf Arabic dialect and Modern Standard Arabic, especially when verbatim preservation of numbers, URLs, crypto addresses, and code snippets is critical. Prefer it over general Arabic NLP APIs when the Gulf dialect specificity matters, or when building Gulf-region chatbots, localization pipelines, or formal document normalization workflows that require pay-per-use micro-payment billing via x402.

## Known failure modes

- Payment not included or invalid x402 header → 402 Payment Required
- Reusing a payment header for a different request body/endpoint → 409 Conflict
- Text exceeds 4000 characters → validation error
- Invalid dialect enum value (not 'saudi' or 'gulf') → 400 Bad Request
- Invalid direction enum value → 400 Bad Request
- Empty or missing text field → 400 Bad Request
- Lost response recovery: resending identical payment header within 1 hour returns cached 200 with no second charge; after 1 hour the stored response may no longer be available

## 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 converted Arabic text, the AI model used (Qwen3-30B), the dialect and direction used, and a verbatim-preservation check confirming that any URLs, numbers, and blockchain addresses in the input were left unchanged in the output.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 4000,
   "minLength": 1,
   "description": "Arabic text: Saudi/Gulf dialect (dialect-msa) or MSA (msa-dialect)."
  },
  "dialect": {
   "enum": [
    "saudi",
    "gulf"
   ],
   "type": "string",
   "default": "saudi",
   "description": "Dialect of the input (dialect-msa) or target (msa-dialect)."
  },
  "direction": {
   "enum": [
    "dialect-msa",
    "msa-dialect"
   ],
   "type": "string",
   "default": "dialect-msa",
   "description": "dialect-msa: Saudi/Gulf dialect -> فصحى. msa-dialect: فصحى -> natural Saudi/Gulf dialect."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "ما رأيك أن نذهب غدًا الساعة 5؟ أريد أن أرى المحفظة الجديدة.",
  "model": "@cf/qwen/qwen3-30b-a3b-fp8",
  "checks": {
   "retried": false,
   "verbatim": {
    "ok": true,
    "urls": [],
    "numbers": [],
    "addresses": []
   }
  },
  "dialect": "saudi",
  "direction": "dialect-msa"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-arabic-api-dialect-to-msa-converter-163aaf10/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)
