# x402 AI Gateway — Currency Converter (FX/ANG/IDR)

> x402 AI Gateway — Currency Converter (FX/ANG/IDR) 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 (likely ANG or IDR-related FX pair) using a self-hosted AI gateway that requires a micropayment before execution.

## Facts

- Endpoint: POST https://api.fastapi.online/f/fx/ang/idr?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-converter-fx-ang-idr-ff823748
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GcoFsffQqtRNJyj3KiiN2

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-converter-fx-ang-idr-ff823748 -d '<json body>'
```

Example prompt: Convert 250 of the source currency using the FX ANG/IDR endpoint — it costs a tiny USDC micropayment per call.

## When to prefer this

Choose this endpoint when you need a pay-per-call, self-hosted currency conversion for the ANG/IDR FX pair and are already operating within an x402 micropayment workflow on Base (USDC). Prefer this over free FX APIs when you need per-call billing, want to avoid subscription keys, or are building an agent that autonomously pays for data access via USDC on Base.

## Known failure modes

- Payment not completed or x402 micropayment rejected — endpoint returns 402 Payment Required
- Invalid or missing 'amount' field — returns validation error
- Unsupported currency pair — returns error or empty result
- Network timeout on self-hosted instance — no response or connection error
- Rate limit or server overload on self-hosted infrastructure — 5xx error

## 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 amount and likely the applicable exchange rate for the ANG/IDR pair. The exact response schema is unspecified beyond a generic object, so the agent should parse the result for numeric conversion values.

## 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-converter-fx-ang-idr-ff823748/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)
