# x402 AI Gateway – Currency Amount Converter

> x402 AI Gateway – Currency Amount 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-10).

Converts a specified amount of a source currency, gated behind an x402 USDC micropayment on Base before execution.

## Facts

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

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-converter-3cc95521 -d '<json body>'
```

Example prompt: Convert 250 units of USD to EUR for me — pay the micropayment fee automatically.

## When to prefer this

Choose this endpoint when you need a pay-per-use, self-hosted currency conversion that integrates natively with x402 USDC micropayment flows on Base — ideal for autonomous agents that manage their own wallets and need to avoid subscription keys or API token management.

## Known failure modes

- Payment not provided or insufficient USDC balance returns 402 Payment Required
- Invalid or unsupported currency codes return an error
- Amount not specified defaults to 1 but may produce unexpected results
- Network or gateway downtime returns 5xx errors
- Malformed request body returns 400 Bad Request

## How this service works

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

## Output

A JSON object containing the conversion result for the specified amount, returned after a successful x402 USDC micropayment of $0.0002 on Base is processed.

## 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-converter-3cc95521/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)
