# Farsi Text Transliteration API

> Farsi Text Transliteration API is a paid API for AI agents from farsi-tools.johnaio281.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-29).

Converts Persian (Farsi) text into Latin-script transliteration and URL-safe slugs

## Facts

- Endpoint: GET https://farsi-tools.johnaio281.workers.dev/api/fa/transliterate?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/farsi-text-transliteration-api-b0de204e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KSod0vsrSSQKldkzwhmK1

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 farsi-text-transliteration-api-b0de204e
```

Example prompt: Transliterate this Persian phrase into Latin characters for me: 'سلام دنیا' — and also give me a URL-safe slug version of it.

## When to prefer this

Choose this endpoint when you need to convert Persian (Farsi) script into readable Latin characters or URL-safe slugs, particularly for internationalization, SEO, or routing purposes. It is purpose-built for Farsi and supports slug generation in one call, unlike generic transliteration libraries that may not handle Persian script nuances or slug formatting.

## Known failure modes

- Missing required 'text' query parameter returns an error
- Input text exceeding 100,000 characters may be rejected
- Non-Persian/Farsi text may produce unexpected or empty transliteration
- Payment failure via x402 (insufficient USDC balance on Base) returns HTTP 402
- Network errors connecting to the Cloudflare Worker endpoint

## How this service works

Persian (Farsi) and Iranian utility API for AI agents. Text normalization, transliteration, Jalali (Solar Hijri) calendar conversion, Persian digits and number-to-words, Iranian national ID / Sheba (IBAN) / mobile / landline / postal code / bank card (Luhn PAN) / company ID / economic code validators, Iranian provinces and cities, official Jalali holidays, Rial-Toman conversion. Also a FIXED-PRICE deliverable SKU: Persian/Arabic data cleanup at $0.90, $9 or $25 flat per file (not per call) - upload a CSV, TSV or text file and get it back normalized, with an optional Latin transliteration column. Pay per request in USDC on Base via x402 - no signup, no API key, no KYC.

## Output

A JSON object containing 'output' (the Latin-script transliteration of the input Persian text) and 'slug' (a URL-safe, hyphenated version of the transliteration), e.g. {"output": "slam dnya", "slug": "slam-dnya"}.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "slug": {
       "type": "boolean"
      },
      "text": {
       "type": "string",
       "description": "Persian (Farsi) text or value to process. Max 100000 characters."
      },
      "options": {
       "type": "object",
       "description": "optional, e.g. {\"digits\":\"ascii\"}"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "slug": "slam-dnya",
  "output": "slam dnya"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/farsi-text-transliteration-api-b0de204e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from farsi-tools.johnaio281.workers.dev](https://www.zero.xyz/host/farsi-tools.johnaio281.workers.dev/llms.txt)
