# farsi-tools Rial-Toman Converter

> farsi-tools Rial-Toman Converter is a paid API for AI agents from farsi-tools.johnaio281.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-31).

Converts an amount between Iranian Rial and Toman currency units

## Facts

- Endpoint: GET https://farsi-tools.johnaio281.workers.dev/api/fa/rial-toman?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/farsi-tools-rial-toman-converter-d65d6721
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1w7lXNk-dY4GBga486vQ9

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-tools-rial-toman-converter-d65d6721
```

Example prompt: Convert 50000 rial to toman for me — I need to know the equivalent Toman amount.

## When to prefer this

Use this endpoint when you need a simple, reliable programmatic conversion between Iranian Rial and Toman — especially in pipelines already using the farsi-tools suite for other Persian/Iranian data tasks. It is pay-per-call with no signup, making it ideal for low-volume or sporadic agent workflows that don't justify maintaining a custom conversion library.

## Known failure modes

- Missing required 'amount' query parameter returns an error
- Non-numeric amount value may cause a validation error
- Invalid unit enum value (not 'rial' or 'toman') results in bad request
- Network timeout on the Workers.dev edge runtime

## 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 the original input amount, its unit (rial or toman), the converted output amount, and the output unit — e.g. {unit: 'rial', input: 10000, output: 1000, outputUnit: 'toman'}.

## 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": [
      "amount"
     ],
     "properties": {
      "unit": {
       "enum": [
        "rial",
        "toman"
       ],
       "type": "string"
      },
      "amount": {
       "type": [
        "number",
        "string"
       ]
      },
      "number": {
       "type": [
        "number",
        "string"
       ]
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "unit": "rial",
  "input": 10000,
  "output": 1000,
  "outputUnit": "toman"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/farsi-tools-rial-toman-converter-d65d6721/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)
