# 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 a source currency, gated by an x402 USDC micropayment on Base before executing.

## Facts

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

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-ce9c7385 -d '<json body>'
```

Example prompt: Convert 250 USD to EUR for me — it's on the x402 AI Gateway and costs a tiny USDC micropayment per call.

## When to prefer this

Choose this endpoint when you need a pay-per-use, micropayment-gated currency conversion without committing to a subscription, and when operating in an x402-compatible agent workflow that can handle USDC payments on Base automatically.

## Known failure modes

- Payment not provided or insufficient USDC — 402 Payment Required response before execution
- Invalid or unsupported currency code — may return error or empty result
- Amount field missing — defaults to 1 if not provided, which may not be the intended conversion
- Network timeout or self-hosted backend unavailability — generic 5xx error
- Malformed request body — 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 currency amount or exchange result for the specified input amount and source currency.

## 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-ce9c7385/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)
