# x402 AI Gateway — Currency Amount Conversion

> x402 AI Gateway — Currency Amount Conversion 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 one currency to another via a micropayment-gated AI gateway endpoint.

## Facts

- Endpoint: POST https://api.fastapi.online/f/fx/ang/iqd?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-currency-amount-conversion-07a42df6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RHzScSPLmzEtnYedIZwO1

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-currency-amount-conversion-07a42df6 -d '<json body>'
```

Example prompt: Convert 50 units of IQD to USD for me — this is on the x402 AI gateway and I'm happy to pay the micropayment fee.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call currency conversion with no subscription overhead, and you are already operating within the x402/USDC micropayment ecosystem on Base. Ideal for agents making occasional or automated FX lookups where per-call cost predictability ($0.0002 USDC) matters more than high-volume rate discounts.

## Known failure modes

- 402 Payment Required — micropayment not provided or insufficient USDC balance
- Invalid or missing amount field — defaults to 1 if omitted but may return unexpected results
- Unsupported currency pair — endpoint may not support all forex combinations
- Gateway timeout — self-hosted infrastructure may be unavailable
- Malformed response — schema is loosely typed, output structure may vary

## 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 currency value or exchange result for the specified amount, computed via the self-hosted AI gateway after a $0.0002 USDC micropayment on Base is settled.

## 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-currency-amount-conversion-07a42df6/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)
