# x402 AI Gateway — FX/IRR Currency Converter

> x402 AI Gateway — FX/IRR Currency Converter is a paid API for AI agents from api.fastapi.online, paid per call via x402, $0.0002/call, status unknown (last checked 2026-10-12).

Converts a specified amount of a source currency using the IRR (Iranian Rial) or FX rate, gated behind an x402 USDC micropayment on Base.

## Facts

- Endpoint: POST https://api.fastapi.online/f/fx/ang/irr?utm_source=zero.xyz
- Price: $0.0002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-ai-gateway-fx-irr-currency-converter-02aabf21
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_D8NuBVX-Vf4tY9jU7GG7g

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-ai-gateway-fx-irr-currency-converter-02aabf21 -d '<json body>'
```

Example prompt: What's the current exchange rate for 500 USD to Iranian Rial? Convert that amount for me using the FX gateway.

## When to prefer this

Choose this endpoint when you need programmatic FX or IRR currency conversion with per-call micropayment pricing via x402 on Base blockchain, especially in agentic workflows where paying fractions of a cent per lookup is preferable to subscription fees. Best for low-volume, on-demand currency conversion where cost transparency per call matters.

## Known failure modes

- 402 Payment Required if x402 USDC micropayment on Base is not provided or insufficient
- Invalid or missing amount field returns validation error
- Unsupported currency pair may return an error or empty result
- Network timeout or upstream FX data provider unavailability
- Malformed request body returns 422 Unprocessable Entity

## How this service works

Self-hosted AI API gateway. Expensive endpoints require an x402 micropayment (USDC on Base) before executing.

## Output

Returns a JSON object containing the converted amount or exchange rate result for the specified currency amount, reflecting current FX data for IRR-related conversions.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "amount": {
   "type": "number",
   "description": "Amount of the source currency to convert (default 1)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-ai-gateway-fx-irr-currency-converter-02aabf21/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.fastapi.online](https://www.zero.xyz/host/api.fastapi.online/llms.txt)
